CTreeCtrl::GetEditControl

트리 뷰 항목의 텍스트를 편집 하는 데 사용 되는 편집 컨트롤의 핸들을 검색 하려면이 함수를 호출 합니다.

CEdit* GetEditControl( ) const;

반환 값

성공 하면 항목 텍스트를 편집 하려면 편집 컨트롤에 대 한 포인터입니다. 그렇지 않으면 NULL.

예제

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

요구 사항

헤더: afxcmn.h

참고 항목

참조

CTreeCtrl 클래스

계층 구조 차트

CTreeCtrl::EditLabel