WinXTreeView_GetSelection


hItem = WinXTreeView_GetSelection (hTreeView)

Gets the handle to the selected item in a tree view control

Parameter Description
hTreeView The handle to the tree view control to get the selected item of

Returns

The handle to the currently selected item or 0 if there are no items selected.

Remarks

none

Examples

'get the current selection
PRINT "handle to current selection :";HEX$(WinXTreeView_GetSelection (hTreeView))

Related Links

WinXAddTreeView
WinXTreeView_AddItem
WinXTreeView_SetSelection
WinXTreeView_GetItemLabel$
WinXTreeView_GetItemFromPoint