Help Center

CHeader.Layoutmethod

Retrieves the correct size and position of a header control within the parent window.

WindowsmethodCHeader.incdocumented

Syntax

FUNCTION Layout (BYVAL hHeader AS HWND, BYVAL phdl AS HDLAYOUT PTR) AS BOOLEAN
FUNCTION Layout (BYVAL hHeader AS HWND, BYREF hdl AS HDLAYOUT) AS BOOLEAN
FUNCTION Layout (BYVAL hHeader AS HWND) AS HDLAYOUT

Parameters

NameDescription
hHeaderThe handle of the header control.
phdiA 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.

Description

Retrieves the correct size and position of a header control within the parent window.

Reference

  • Include file CHeader.inc
  • Defined in AfxNova/CHeader.inc:416
  • Documented in Windows/WIndows Controls/CHeader Class.md
  • Topic: CHeader Class