Share via


CListCtrl::GetEditControl

Recupera el identificador del control de edición se usa para editar el texto de un elemento de vista de lista.

CEdit* GetEditControl( ) const;

Valor devuelto

Si es correcto, un puntero al objeto de CEdit utilizado para editar el texto del elemento; si no NULL.

Ejemplo

        // 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);
        }

Requisitos

encabezado: afxcmn.h

Vea también

Referencia

Clase de CListCtrl

Gráfico de jerarquía

CListCtrl::EditLabel