Header_GetItemDropDownRect macro (commctrl.h)
Gets the coordinates of the drop-down button for a specified item in a header control. The header control must be of type HDF_SPLITBUTTON. Use this macro or send the HDM_GETITEMDROPDOWNRECT message explicitly.
Syntax
BOOL Header_GetItemDropDownRect(
[in] HWND hwnd,
[in] int iItem,
[in, out] LPRECT lprc
);
Parameters
[in] hwnd
Type: HWND
A handle to the header control.
[in] iItem
Type: int
The zero-based index of the header control item for which to retrieve the bounding rectangle.
[in, out] lprc
Type: LPRECT
A pointer to a RECT structure to receive the bounding rectangle information. The message sender is responsible for allocating this structure. The coordinates returned in the RECT structure are expressed as screen coordinates.
Return value
Type: BOOL
TRUE if successful; otherwise, FALSE.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | commctrl.h |