CListCtrl::GetEditControl
TOC
Collapse the table of content
Expand the table of content
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. ArchiveDisclaimer

CListCtrl::GetEditControl

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

CEdit* GetEditControl( ) const;

Return Value

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

Example

// The pointer to my list view control.
extern CListCtrl* pmyListCtrl;
// The string replacing the text in the edit control.
extern LPCTSTR lpszmyString;

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

if (pEdit != NULL)
{
   pEdit->SetWindowText(lpszmyString);
}

See Also

CListCtrl Overview | Class Members | Hierarchy Chart | CListCtrl::EditLabel

Show:
© 2016 Microsoft