Header_GetItemDropDownRect Macro

Gets the coordinates of the drop-down button for a specfied 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(

    HWND hwnd,     int iItem,     LPRECT lpItemRect );

Parameters

hwnd
[in] A handle to the header control.
iItem
[in] The zero-based index of the header control item for which to retrieve the bounding rectangle.
lpItemRect
[in, out] 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

TRUE if successful; otherwise, FALSE.

Macro Information

Minimum DLL Versioncomctl32.dll
Headercommctrl.h
Minimum operating systems Windows Vista
Tags :


Page view tracker