CTreeCtrl::GetEditControl

调用该函数检索编辑控件中处理使用编辑树视图的项的文本。

CEdit* GetEditControl( ) const;

返回值

若要编辑控件的指针在编辑项文本,因此,如果成功;否则 NULL

示例

// The string replacing the text in the edit control.
LPCTSTR lpszmyString = _T("New text!");

// Replace the text in the label edit control, if possible.
CEdit* pEdit = m_TreeCtrl.GetEditControl();

if (pEdit != NULL)
{
   pEdit->SetWindowText(lpszmyString);
}

要求

Header: afxcmn.h

请参见

参考

CTreeCtrl选件类

层次结构图

CTreeCtrl::EditLabel