Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


Retrieves the handle of the edit control used to edit a list view item's text.

CEdit* GetEditControl( ) const;

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

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

// If possible, replace the text in the label edit control.
CEdit* pEdit = m_myListCtrl.GetEditControl();

if (pEdit != NULL)

Header: afxcmn.h

Community Additions

© 2015 Microsoft