CTreeCtrl::GetParentItem
Call this function to retrieve the parent of hItem.
HTREEITEM GetParentItem(
HTREEITEM hItem
) const;
Parameters
- hItem
Handle of a tree item.
Return Value
The handle of the parent item; otherwise NULL.
Remarks
This function will return NULL if the parent of the specified item is the root node of the tree.
Example
See the example for CTreeCtrl::EnsureVisible.
Requirements
Header: afxcmn.h