Jump to content

WM QUERYBORDERSIZE

From EDM2
Revision as of 01:34, 21 April 2025 by Martini (talk | contribs) (Created page with "This message is sent to the frame window to determine the width and height of the border of the window. ==Syntax== <PRE> param1 PWPOINT pSize; Width and height of size border control.: param2 ULONG ulReserved; Reserved value, should be 0.: </PRE> ==Parameters== ;pSize (PWPOINT) - Output : Pointer to a POINTL structure that is used to hold the width in the '''x''' parameter and the height in the '''y''' parameter. ;ulReserved (ULONG) - Input...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message is sent to the frame window to determine the width and height of the border of the window.

Syntax

param1
PWPOINT pSize;     /* Width and height of size border control. */

param2
ULONG ulReserved;    /* Reserved value, should be 0. */

Parameters

pSize (PWPOINT) - Output
Pointer to a POINTL structure that is used to hold the width in the x parameter and the height in the y parameter.
ulReserved (ULONG) - Input
Reserved value, should be 0.

Returns

rc (BOOL) - returns
Success indicator.
TRUE: Successful completion.
FALSE: Error occurred.

Remarks

The frame window responds to this message by returning the width and height of its border in the pSize parameter, as follows:

  • SV_CX/CYSIZEBORDER if FCF_SIZEBORDER is specified
  • SV_CX/CYDLGFRAME if FCF_DLGBORDER is specified
  • SV_CX/CYBORDER if FS_BORDER is specified.

Default Processing

The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set rc to the default value of FALSE.