CTreeCtrl::GetEditControl
CEdit*GetEditControl();
Return Value
A pointer to the edit control used to edit the item text, if successful; otherwise NULL.
Remarks
Call this function to retrieve the handle of the edit control being used to edit a tree view item’s text.
Example
// The pointer to my tree control.
extern CTreeCtrl* pmyTreeCtrl;
// The string replacing the text in the edit control.
extern LPCTSTR lpszmyString;
// Replace the text in the label edit control, if possible.
CEdit* pEdit = pmyTreeCtrl->GetEditControl();
if (pEdit != NULL)
{
pEdit->SetWindowText(lpszmyString);
}
CTreeCtrl Overview | Class Members | Hierarchy Chart
See Also CTreeCtrl::EditLabel