HDHITTESTINFO structure (commctrl.h)
Contains information about a hit test. This structure is used with the HDM_HITTEST message and it supersedes the HD_HITTESTINFO structure.
Syntax
typedef struct _HD_HITTESTINFO {
POINT pt;
UINT flags;
int iItem;
} HDHITTESTINFO, *LPHDHITTESTINFO;
Members
pt
Type: POINT
A POINT structure that contains the point to be 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 values listed below. Two of these values can be combined, such as when the position is above and to the left of the client area.
Value | Meaning |
---|---|
|
The point is above the header control's bounding rectangle. |
|
The point is below the header control's bounding rectangle. |
|
The point is inside the header control's bounding rectangle but is not over a header item. |
|
The point is on the divider between two header items. |
|
The point is on the divider of an item that has a width of zero. Dragging the divider reveals the item instead of resizing the item to the left of the divider. |
|
The point is inside the header control's bounding rectangle. |
|
Version 5.80 The point is over the filter area. |
|
Version 5.80 The point is on the filter button. |
|
The point is to the left of the header control's bounding rectangle. |
|
The point is to the right of the header control's bounding rectangle. |
|
Version 6.00 and Windows Vista. The point is within the state icon of the item. If style HDS_CHECKBOXES is specified, the point is within the checkbox of the item. |
|
Version 6.00 and Windows Vista. The point is within the split button of the item. The style HDF_SPLITBUTTON must be set on the item. |
|
Version 6.00 and Windows Vista. The point is within the overflow button of the header control. The style HDS_OVERFLOW must be set on the header control. |
iItem
Type: int
If the hit test is successful, contains the index of the item at the hit test point.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | commctrl.h |