Header_Layout macro

Retrieves the correct size and position of a header control within the parent window. You can use this macro or send the HDM_LAYOUT message explicitly.

Syntax


BOOL Header_Layout(
  [in]  HWND       hwndHD,
  [out] LPHDLAYOUT playout
);

Parameters

hwndHD [in]

Type: HWND

A handle to the header control.

playout [out]

Type: LPHDLAYOUT

A 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

Returns TRUE if successful, or FALSE otherwise.

Remarks

The Header_Layout macro is defined as follows:

#define Header_Layout(hwndHD, playout) \

    (BOOL)SendMessage((hwndHD), HDM_LAYOUT, 0, \

    (LPARAM)(LPHDLAYOUT)(playout))

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

 

 

Show: