CEdit* EditLabel( int nItem );
Return Value
If successful, a pointer to the CEdit object that is used to edit the item text; otherwise NULL.
Parameters
nItem
Index of the list view item that is to be edited.
Remarks
A list view control that has the LVS_EDITLABELS window style enables a user to edit item labels in place. The user begins editing by clicking the label of an item that has the focus.
Use this function to begin in-place editing of the specified list view item’s text.
Example
// The pointer to my list view control.
extern CListCtrl* pmyListCtrl;
// Make sure the focus is set to the list view control.
pmyListCtrl->SetFocus();
// Show the edit control on the label of the first
// item in the list view control.
CEdit* pmyEdit = pmyListCtrl->EditLabel(1);
ASSERT(pmyEdit != NULL);
CListCtrl Overview | Class Members | Hierarchy Chart
See Also CListCtrl::GetEditControl