WinXTreeView_GetChildItem


hItem = WinXTreeView_GetChildItem (hTreeView, hItem)

Gets the handle of the first child item of a particular item in a tree view control.

Parameter Description
hTreeView The handle to the tree view control
hItem The handle to the item to get the first child of

Returns

The handle to the first child item of the specified item, or 0 if there is none.

Remarks

You can used this function to check if an item has children

Examples

'does an item have children?
IFZ WinXTreeView_GetChildItem (hTreeView, hItem) THEN PRINT "No children"

Related Links

WinXAddTreeView
WinXTreeView_AddItem
WinXTreeView_DeleteItem
WinXTreeView_GetNextItem
WinXTreeView_GetParentItem
WinXTreeView_GetPreviousItem