Share via


Header_Layout (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Header Controls Macros
HDM_LAYOUT
HDLAYOUT