WinXTreeView_GetNextItem


hItem = WinXTreeView_GetNextItem (hTreeView, hItem)

Gets the next sibling item after a particular item in a tree view control.

Parameter Description
hTreeView The handle to the tree view control
hItem The item to start at

Returns

The handle to the next sibling item or 0 if this is the last sibling item.

Remarks

You can use this function to iterate over the items in a tree view control.

Examples

'List the handles of items following some item starting with that item
DO WHILE hItem

PRINT hItem
hItem = WinXTreeView_GetNextItem (hTreeView, hItem)

LOOP

Related Links

WinXAddTreeView
WinXTreeView_AddItem
WinXTreeView_DeleteItem
WinXTreeView_GetChildItem
WinXTreeView_GetParentItem
WinXTreeView_GetPreviousItem