Share via


CTreeCtrl::GetEditControl

Llame a esta función para recuperar el identificador del control de edición que se utiliza para modificar el texto de un elemento de vista de árbol.

CEdit* GetEditControl( ) const;

Valor devuelto

Un puntero al control de edición se usa para editar el texto del elemento, si correctamente; si no NULL.

Ejemplo

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

// Replace the text in the label edit control, if possible.
CEdit* pEdit = m_TreeCtrl.GetEditControl();

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

Requisitos

encabezado: afxcmn.h

Vea también

Referencia

Clase de CTreeCtrl

Gráfico de jerarquía

CTreeCtrl::EditLabel