LVHITTESTINFO structure
Contains information about a hit test. This structure has been extended to accommodate subitem hit-testing. It is used in association with the LVM_HITTEST and LVM_SUBITEMHITTEST messages and their related macros. This structure supersedes the LVHITTESTINFO structure.
Syntax
typedef struct _LVHITTESTINFO { POINT pt; UINT flags; int iItem; int iSubItem; int iGroup; } LVHITTESTINFO, *LPLVHITTESTINFO;
Members
- pt
-
Type: POINT
-
The position to hit test, in client coordinates.
- flags
-
Type: UINT
-
The variable that receives information about the results of a hit test. This member can be one or more of the following values:
You can use LVHT_ABOVE, LVHT_BELOW, LVHT_TOLEFT, and LVHT_TORIGHT to determine whether to scroll the contents of a list-view control. Two of these values may be combined. For example, if the position is above and to the left of the client area, you could use both LVHT_ABOVE and LVHT_TOLEFT.
You can test for LVHT_ONITEM to determine whether a specified position is over a list-view item. This value is a bitwise-OR operation on LVHT_ONITEMICON, LVHT_ONITEMLABEL, and LVHT_ONITEMSTATEICON.
- iItem
-
Type: int
-
Receives the index of the matching item. Or if hit-testing a subitem, this value represents the subitem's parent item.
- iSubItem
-
Type: int
-
Version 4.70. Receives the index of the matching subitem. When hit-testing an item, this member will be zero.
- iGroup
-
Type: int
-
Windows Vista. Group index of the item hit (read only). Valid only for owner data. If the point is within an item that is displayed in multiple groups then iGroup will specify the group index of the item.
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
Send comments about this topic to Microsoft
Build date: 10/27/2012