1 out of 1 rated this helpful - Rate this topic

LVM_HITTEST message

Applies to: desktop apps only

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 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Commctrl.h

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Unclear description for wParam
Must be 0. Windows Vista. Should be -1 if the iGroup and iSubItem members of the lParam structure are to be retrieved.

Does this mean that it should be -1 with Vista+ and iGroup/iSubItem request, and zero otherwise?