Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
WM_CALCFRAMERECT (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINFRAMEMGR
WM_CALCFRAMERECT
prclFrame = (PRECTL) PVOIDFROMMP(mp1); /* pointer to RECTL structure */
fClient = (BOOL) SHORT1FROMMP(mp2); /* client-indicator flag */
The WM_CALCFRAMERECT message is sent to a frame window when the
WinCalcFrameRect function is called. The default window procedure calculates
a client rectangle from a frame rectangle or calculates a frame rectangle
from a client rectangle.
Parameter Description
────────────────────────────────────────────────────────────────────────────
prcl Low word of mp1. Points to the RECTL structure that contains the
coordinates of the window. If the fClient parameter is TRUE, this
structure contains the coordinates of the frame window, and on
return, it contains the coordinates of a client window. If the
fClient parameter is FALSE, this structure contains the
coordinates of the client window, and on return, it contains the
coordinates of a frame window.
fClient Low word of mp2. Specifies whether the window to calculate is a
client window or a frame window. If this value is TRUE, a client
window is calculated. If this value is FALSE, a frame window is
calculated.
Return Value
If an application processes this message, it should return TRUE if
successful or FALSE if an error occurs or the calculated rectangle is
empty.
See Also
WinCalcFrameRect
♦