Header_Layout (Windows CE 5.0)

Send Feedback

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.

#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 Values

TRUE indicates success. FALSE indicates failure.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Commctrl.h.

See Also

Header Controls Macros | HDM_LAYOUT | HDLAYOUT

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.