CTreeCtrl::GetNextItem
HTREEITEM GetNextItem( HTREEITEM hItem, UINT nCode );
Return Value
The handle of the next item if successful; otherwise NULL.
Parameters
hItem
Handle of a tree item.
nCode
A flag indicating the type of relation to hItem. This flag can be one of the following values:
-
TVGN_CARET Retrieves the currently selected item.
-
TVGN_CHILD Retrieves the first child item. The hItem parameter must be NULL.
-
TVGN_DROPHILITE Retrieves the item that is the target of a drag-and-drop operation.
-
TVGN_FIRSTVISIBLE Retrieves the first visible item.
-
TVGN_NEXT Retrieves the next sibling item.
-
TVGN_NEXTVISIBLE Retrieves the next visible item that follows the specified item.
-
TVGN_PARENT Retrieves the parent of the specified item.
-
TVGN_PREVIOUS Retrieves the previous sibling item.
-
TVGN_PREVIOUSVISIBLE Retrieves the first visible item that precedes the specified item.
-
TVGN_ROOT Retrieves the first child item of the root item of which the specified item is a part.
Remarks
Call this function to retrieve the tree view item that has the specified relationship, indicated by the nCode parameter, to hItem.
CTreeCtrl Overview | Class Members | Hierarchy Chart
See Also CTreeCtrl::SetItem, CTreeCtrl::GetChildItem, CTreeCtrl::GetItem, CTreeCtrl::SelectItem, CTreeCtrl::GetPrevSiblingItem