PyCTreeCtrl.HitTest
(int, int) = HitTest(x,y)
Determines which tree view item, if any, is at a specified position.
Parameters
Return Value
The result is a tuple of (flags, hItem). flags may be a combination of the following values:
Value | Description |
commctrl.TVHT_ABOVE | Above the client area. |
commctrl.TVHT_BELOW | Below the client area. |
commctrl.TVHT_NOWHERE | In the client area, but below the last item. |
commctrl.TVHT_ONITEM | On the bitmap or label associated with an item. |
commctrl.TVHT_ONITEMBUTTON | On the button associated with an item. |
commctrl.TVHT_ONITEMICON | On the bitmap associated with an item. |
commctrl.TVHT_ONITEMINDENT | In the indentation associated with an item. |
commctrl.TVHT_ONITEMLABEL | On the label (string) associated with an item. |
commctrl.TVHT_ONITEMRIGHT | In the area to the right of an item. |
commctrl.TVHT_ONITEMSTATEICON | On the state icon for a tree view item that is in a user-defined state. |
commctrl.TVHT_TOLEFT | To the left of the client area. |
commctrl.TVHT_TORIGHT | To the right of the client area. |