The window words are initialized before this message is sent. The window state has not been changed when this message is sent, and so the WinQueryWindowPos function can be used.
This message is sent by default to the FID_CLIENT window.
The system default actions, if FALSE is returned to this message, are based on the operation specified by the pswp parameter.
These actions affect the status of the frame window, and the title button windows and system menu windows contained within it, as follows:
The RESTORE button window is replaced by a MIN button window and the MAX button window is replaced by a RESTORE button window.
The MINIMIZE menu entry is enabled and the MAXIMIZE menu entry is disabled.
The frame window has the WS_MAXIMIZED style bit set and the WS_MINIMIZED style bit reset. Also the MS_VERTICALFLIP style bit of the system menu window is reset.
The RESTORE button window is replaced by a MIN button window (the MAX button window is unaltered).
The MINIMIZE menu entry is enabled, the RESTORE menu entry is disabled and the SIZE menu entry is enabled.
The frame window has the WS_MINIMIZED style bit and the MS_VERTICALFLIP style bit of the system menu window reset.
The RESTORE button window is replaced by a MAX button window and the MIN button window is replaced by a RESTORE button window.
The MAXIMIZE menu entry is enabled and the MINIMIZE menu entry is disabled.
The frame window has the WS_MINIMIZED style bit set and the WS_MAXIMIZED style bit reset. Also the MS_VERTICALFLIP style bit of the system menu window is set.
The RESTORE button window is replaced by a MAX button window (the MIN button window is unaltered).
The MAXIMIZE menu entry is enabled, the RESTORE menu entry is disabled and the SIZE menu entry is enabled.
The frame window has the WS_MAXIMIZED style bit reset.
The MIN button window is replaced by a RESTORE button window (the MAX button window is unaltered).
The RESTORE menu entry is enabled, the MINIMIZE menu entry is disabled and the SIZE menu entry is disabled.
The frame window has the WS_MINIMIZED style bit set, and the MS_VERTICALFLIP style bit of the system menu window is set.
The MAX button window is replaced with a RESTORE button window (the MIN button window is unaltered).
The RESTORE menu entry is enabled, the MAXIMIZE menu entry is disabled.
The frame window has the WS_MAXIMIZED style bit set.