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