Share via


CTreeCtrl::GetCount

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

UINT GetCount( ) const;

Return Value

The number of items in the tree view control.

Example

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

Requirements

Header: afxcmn.h

See Also

Reference

CTreeCtrl Class

Hierarchy Chart

CTreeCtrl::GetVisibleCount

Other Resources

CTreeCtrl Members