WinXTreeView_SetSelection


WinXTreeView_SetSelection (hTreeView, hItem)

Selects an item in a tree view control.

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

Returns

$$TRUE on success or $$FALSE on fail

Remarks

Set the hItem parameter to 0 ($$TVI_ROOT) to remove the selection.

Examples

'remove selection (select none)
WinXTreeView_SetSelection (hTreeView, 0)

Related Links

WinXAddTreeView
WinXTreeView_AddItem
WinXTreeView_GetSelection
WinXTreeView_GetItemFromPoint