CTreeCtrl::GetCount

UINT GetCount( );

Return Value

The number of items in the tree view control; otherwise  – 1.

Remarks

Call this function to retrieve a count of the items in a tree view control.

Example

// The pointer to my tree control.
extern CTreeCtrl* pmyTreeCtrl;

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

CTreeCtrl OverviewClass MembersHierarchy Chart

See Also   CTreeCtrl::GetVisibleCount