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 |
The handle to the item or 0 on fail
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.
' find the item under the mouse WinXGetMousePos (hTV, @x, @y) iItem = WinXTreeView_GetItemFromPoint (hTV, x, y) |
WinXTreeView_GetItemLabel$
WinXTreeView_GetSelection
onItem (Callback)
WinXGetMousePos