WM_SIZE (1.2)
◄Message Group► ◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINMESSAGEMGR
WM_SIZE
cxOld = SHORT1FROMMP(mp1); /* old width */
cyOld = SHORT2FROMMP(mp1); /* old height */
cxNew = SHORT1FROMMP(mp2); /* new width */
cyNew = SHORT2FROMMP(mp2); /* new height */
The WM_SIZE message is sent when a window changes its size. It is sent after
the window has been sized, but before any repainting has been performed. Any
resizing or repositioning of child windows that may be necessary as a result
of the size change is usually performed during the processing of this
message. The application should not send any output to the window during the
processing of the WM_SIZE message because the area drawn into may be drawn a
second time after the WM_SIZE processing is complete.
This message is not sent when the window is created.
The processing of this message for a window displaying an advanced
video-input-and-output (AVIO) presentation space must be carried out by the
default AVIO window procedure.
Parameter Description
────────────────────────────────────────────────────────────────────────────
cxOld Low word of mp1. Specifies the old width.
cyOld High word of mp1. Specifies the old height.
cxNew Low word of mp2. Specifies the new width.
cyNew High word of mp2. Specifies the new height.
Return Value
An application should return zero if it processes this message.
See Also
WinCreateWindow, WinDefAvioWindowProc, WinSetWindowPos, WM_CREATE
♦