WinXTreeView_GetItemFromPoint


WinXTreeView_GetItemFromPoint (hTV, x, y)

Gets the handle to a tree view item under a point

Parameter Description
hTV The handle to the tree view control
x The x coordinate of the point relative to the tree view control
y The y coordinate of the point relative to the tree view control

Returns

The handle to the item or 0 on fail

Remarks

You can use this function to get the item under the mouse cursor. This is very handy for finding out which item an onItem callback refers to.

Examples

' find the item under the mouse
WinXGetMousePos (hTV, @x, @y)
iItem = WinXTreeView_GetItemFromPoint (hTV, x, y)

Related Links

WinXTreeView_GetItemLabel$
WinXTreeView_GetSelection
onItem (Callback)
WinXGetMousePos