CTreeCtrl::EditLabel

현재 위치에서 지정 된 항목의 텍스트를 편집 하려면이 함수를 호출 합니다.

CEdit* EditLabel(
   HTREEITEM hItem 
);

매개 변수

  • hItem
    편집할 수 있는 트리 항목의 핸들입니다.

반환 값

성공할 경우에 대 한 포인터는 CEdit ; 항목 텍스트를 편집 하는 데 사용 되는 개체 그렇지 않으면 NULL.

설명

편집 된 텍스트 항목의 텍스트가 포함 된 단일 행 편집 컨트롤을 대체 하 여 수행 됩니다.

예제

// Make sure the focus is set to the tree control.
m_TreeCtrl.SetFocus();

// Show the edit control on the label of the selected item.
// The tree control must have the TVS_EDITLABELS style set.
HTREEITEM hSel = m_TreeCtrl.GetSelectedItem();
CEdit* pmyEdit = m_TreeCtrl.EditLabel(hSel);
ASSERT(pmyEdit != NULL);

요구 사항

헤더: afxcmn.h

참고 항목

참조

CTreeCtrl 클래스

계층 구조 차트

CTreeCtrl::GetEditControl