Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windows Controls
Control Library
List View
Messages
 LVM_HITTEST Message

  Switch on low bandwidth view
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.

Syntax

To send this message, call the SendMessage function as follows.
lResult = SendMessage(     // returns LRESULT in lResult
   (HWND) hWndControl,     // handle to destination control
   (UINT) LVM_HITTEST,     // message ID
   (WPARAM) wParam,     // = (WPARAM) (WPARAM) wParam;
   (LPARAM) 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

Headercommctrl.h
Minimum operating systems Windows NT 3.51, Windows 95
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker