CListCtrl::GetEditControl

检索使用的编辑控件中处理编辑器列表视图的项的文本。

CEdit* GetEditControl( ) const;

返回值

如果成功,指向在编辑项文本的 CEdit 对象;否则 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)
        {
            pEdit->SetWindowText(lpszmyString);
        }

要求

Header: afxcmn.h

请参见

参考

CListCtrl选件类

层次结构图

CListCtrl::EditLabel