Header_Layout

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.

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))

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Commctrl.h   Commctrl.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

HDM_LAYOUT, HDLAYOUT

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.