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.
Syntax
To send this message, call the
SendMessage
function as follows.
lResult = SendMessage( // returns LRESULT in lResult
hWndControl, // (HWND) handle to destination control
LVM_HITTEST, // (UINT) message ID
wParam, // = (WPARAM) wParam;
lParam // = (LPARAM)(LPLVHITTESTINFO) pinfo;
);
Parameters
- wParam
-
Must be 0. Windows Vista. Should be -1 if the iGroup and iSubItem members of pInfo are to be retrieved.
- pinfo
-
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.
Message Information
| Header | commctrl.h |
|---|
| Minimum operating systems |
Windows NT 3.51, Windows 95 |
|---|