ListView_HitTest  A.7FEU 

The ListView_HitTest macro determines which list view item, if any, is at a specified position. You can use this macro or explicitly send the LVM_HITTEST2HMV3. message.

int ListView_HitTest(

    HWND hwnd,

 

    LV_HITTESTINFO FAR *pinfo

 

   );

 

 

Parameters

hwnd

Handle to the list view control.

pinfo

Pointer to an LV_HITTESTINFO structure that contains the position to hit test and receives information about the results of the hit test.

 

Return Values

Returns the index of the item at the specified position, if any, or -1 otherwise.

See Also

LV_HITTESTINFO, LVM_HITTEST