LVM_HITTEST message

Determines which list-view item, if any, is at a specified position. You can send this message explicitly or by using the ListView_HitTest macro.

Parameters

wParam

Must be 0. **Windows Vista.** Should be -1 if the **iGroup** and **iSubItem** members of the *lParam* structure are to be retrieved.

lParam

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

Return value

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

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h