Share via


Header_Layout (Compact 2013)

3/28/2014

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.

Syntax

#define Header_Layout(hwndHD, playout) \
                                  (BOOL)SNDMSG((hwndHD), HDM_LAYOUT, 0, \
                                  (LPARAM)(HD_LAYOUT  FAR*)(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 Value

TRUE indicates success. FALSE indicates failure.

Requirements

Header

commctrl.h

See Also

Reference

Header Controls Macros
HDM_LAYOUT
HDLAYOUT