Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CListCtrl::EditLabel

Begins in-place editing of an item's text.

CEdit* EditLabel( 
   int nItem  
);
nItem

Index of the list view item that is to be edited.

If successful, a pointer to the CEdit object that is used to edit the item text; otherwise NULL.

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.

		// Make sure the focus is set to the list view control.
		m_myListCtrl.SetFocus();

		// Show the edit control on the label of the first 
		// item in the list view control.
		CEdit* pmyEdit = m_myListCtrl.EditLabel(1);
		ASSERT(pmyEdit != NULL);

Header: afxcmn.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.