This macro retrieves the size and position of a header control within a specified rectangle. This macro is used to determine the appropriate dimensions for a new header control that is to occupy the specified rectangle. You can use this macro or send the HDM_LAYOUT message explicitly.
At a Glance
Header file: | Commctrl.h |
Windows CE versions: | 1.0 and later |
Related message: | HDM_LAYOUT |
Syntax
BOOL Header_Layout( hwndHD, playout );
Parameters
hwndHD
Handle to the header control.
playout
Pointer to an HDLAYOUT structure. The prc member specifies the coordinates of a rectangle, and the pwpos member receives the size and position for the header control within the rectangle.
Return Values
TRUE indicates success. FALSE indicates failure.
Remarks
The Header_Layout macro is defined as follows:
#define Header_Layout(hwndHD, playout) \
(BOOL)SendMessage((hwndHD), HDM_LAYOUT, 0, \
(LPARAM)(PLHDLAYOUT)(playout))