SEC_LISTCLASS::HitTest
intSEC_LISTCLASS::HitTest(CPointpt, UINT*pFlags, int&nHitCol)
Determines what item is under a given point.
Defined in: slstcore.inl
Return Value
he index of the item, if any, that occupies the specified point; otherwise -1.
Parameters
pt
Client coordinates of the point to test.
pFlags
Pointer to an integer that receives information about the results of the hit test. See remarks.
nHitCol
The returned column thet the point is contained in; otherwise -1.
Comments
The pFlags member will contain one of more of the following: LVHT_ABOVE The position is above the client area of the control.
LVHT_BELOW The position is below the client area of the control.
LVHT_NOWHERE The position is inside the list view control's client window but is not over a list item.
LVHT_ONITEMICON The position is over a list view item's icon.
LVHT_ONITEMLABEL The position is over a list view item's text.
LVHT_ONITEMSTATEICON The position is over the state image of a list view item.
LVHT_TOLEFT The position is to the left of the list view control's client area.
LVHT_TORIGHT The position is to the right of the list view control's client area.