Jump to content

WM CALCFRAMERECT

From EDM2
Revision as of 04:40, 14 April 2025 by Martini (talk | contribs) (Created page with "This message occurs when an application uses the WinCalcFrameRect function. ==Syntax== <pre> param1 PRECTL pRect; Rectangle structure.: param2 USHORT usFrame; Frame indicator.: </pre> ==Parameters== ;''pRect'' (PRECTL) - input/output: Points to a RECTL structure. ;''usFrame'' (USHORT) - input: Frame indicator. :TRUE: Frame rectangle provided :FALSE: Client area rectangle provided ==Returns== ;''rc'' (BOOL) - returns: Rectangle-calculated i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message occurs when an application uses the WinCalcFrameRect function.

Syntax

param1
    PRECTL pRect;   /* Rectangle structure. */

param2
    USHORT usFrame; /* Frame indicator. */

Parameters

pRect (PRECTL) - input/output
Points to a RECTL structure.
usFrame (USHORT) - input
Frame indicator.
TRUE: Frame rectangle provided
FALSE: Client area rectangle provided

Returns

rc (BOOL) - returns
Rectangle-calculated indicator.
TRUE: Successful completion
FALSE: Error occurred or the calculated rectangle is empty

Remarks

This message is sent to the frame control to perform the appropriate calculation. If the low word of MP2 is TRUE, the RECTL structure in MP1 contains a frame window and this message calculates the RECTL of the client. If the low word of MP2 is FALSE, MP1 contains a client window and this message calculates the RECTL of the frame.

in Frame Controls

Frame control calculates the appropriate rectangle, taking into account byte alignment, or nonbyte alignment if FCF_NOBYTEALIGN is specified.

Default Processing

The default window procedure takes no action on this message, other than to set rc to FALSE.

in Frame Controls

The default window procedure takes no action on this message, other than to set rc to FALSE.

Related Messages

  • WM_CALCFRAMERECT (in Frame Controls)