다음을 통해 공유


CTreeCtrl::GetCount

Tree view 컨트롤에 있는 항목의 개수를 검색 하려면이 함수를 호출 합니다.

UINT GetCount( ) const;

반환 값

Tree view 컨트롤에 있는 항목의 수입니다.

예제

// Delete all of the items from the tree control.
m_TreeCtrl.DeleteAllItems();
ASSERT(m_TreeCtrl.GetCount() == 0);

요구 사항

헤더: afxcmn.h

참고 항목

참조

CTreeCtrl 클래스

계층 구조 차트

CTreeCtrl::GetVisibleCount