This documentation is archived and is not being maintained.

CTreeCtrl::ItemHasChildren 

Use this function to determine whether the tree item specified by hItem has child items.


BOOL ItemHasChildren(
   HTREEITEM hItem 
) const;

Parameters

hItem

Handle of a tree item.

Nonzero if the tree item specified by hItem has child items; 0 if it does not.

If so, you can then use CTreeCtrl::GetChildItem to retrieve those child items.

See the example for CTreeCtrl::GetSelectedItem.

Show: