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_WINDOWPOSCHANGED (1.2)
◄Message Group► ◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINFRAMEMGR
WM_WINDOWPOSCHANGED
paswp = (PSWP) PVOIDFROMMP(mp1); /* pointer to array of SWP structures */
flReturn = MPFROMLONG(mp2); /* return-value flag */
The WM_WINDOWPOSCHANGED message is sent whenever the size of a window
changes.
Parameter Description
────────────────────────────────────────────────────────────────────────────
paswp Low and high word of mp1. Points to an array of two SWP
structures: the first SWP structure contains the new state of the
window; the second SWP structure contains the previous state of
the window.
flReturn Specifies the return value of the WM_ADJUSTWINDOWPOS message; it
is FALSE if SWP_NOADJUST was specified.
Comments
The entire window state is filled in both SWP structures; however, the fs
field of the first SWP structure contains only those bits that correspond to
the actual changes that occurred. For example, if a window is resized,
fields x and y contain the position of the window even though it did not
move, but the fs field does not contain the SWP_MOVE flag.
Example
This example processes the WM_WINDOWPOSCHANGED message and assigns the two
structures to pointers:
PSWP pswpNew, pswpOld;
case WM_WINDOWPOSCHANGED:
pswpNew = PVOIDFROMMP(mp1);
pswpOld = pswpNew + 1;
See Also
WinCreateWindow, WM_ADJUSTWINDOWPOS, WM_CALCVALIDRECTS
♦