WM MINMAXFRAME
Appearance
This message is sent to a frame window that is being minimized, maximized, or restored.
Syntax
param1 PSWP pswp; /* Set window position structure. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */
Parameters
- pswp (PSWP) - input
- Pointer to a SWP structure. The structure has the appropriate SWP_* indicators set to describe the operation that is occurring to the window.
- ulReserved (ULONG) - input
- Reserved value, should be 0.
Returns
- rc (BOOL) - returns
- Processed indicator.
- TRUE: The message has been processed; the default system actions for the operation specified by the pswp parameter to the window are not to be performed.
- FALSE: The message has been ignored; the default system actions for the operation specified by the pswp parameter to the window are to be performed.
Remarks
in Frame Controls
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:
- Window is maximized from a minimized state.
- Title button windows:
- The RESTORE button window is replaced by a MIN button window and the MAX button window is replaced by a RESTORE button window.
- System menu window:
- The MINIMIZE menu entry is enabled and the MAXIMIZE menu entry is disabled.
- Other changes:
- 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.
- Title button windows:
- Window is restored from a minimized state.
- Title button windows:
- The RESTORE button window is replaced by a MIN button window (the MAX button window is unaltered).
- System menu window:
- The MINIMIZE menu entry is enabled, the RESTORE menu entry is disabled and the SIZE menu entry is enabled.
- Other changes:
- The frame window has the WS_MINIMIZED style bit and the MS_VERTICALFLIP style bit of the system menu window reset.
- Title button windows:
- Window is minimized from a maximized state.
- Title button windows:
- The RESTORE button window is replaced by a MAX button window and the MIN button window is replaced by a RESTORE button window.
- System menu window:
- The MAXIMIZE menu entry is enabled and the MINIMIZE menu entry is disabled.
- Other changes:
- 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.
- Title button windows:
- Window is restored from a maximized state.
- Title button windows:
- The RESTORE button window is replaced by a MAX button window (the MIN button window is unaltered).
- System menu window:
- The MAXIMIZE menu entry is enabled, the RESTORE menu entry is disabled and the SIZE menu entry is enabled.
- Other changes:
- The frame window has the WS_MAXIMIZED style bit reset.
- Title button windows:
- Window is minimized from a restored state.
- Title-button windows:
- The MIN button window is replaced by a RESTORE button window (the MAX button window is unaltered).
- System menu window:
- The RESTORE menu entry is enabled, the MINIMIZE menu entry is disabled and the SIZE menu entry is disabled.
- Other changes:
- The frame window has the WS_MINIMIZED style bit set, and the MS_VERTICALFLIP style bit of the system menu window is set.
- Title-button windows:
- Window is maximized from a restored state.
- Title-button windows:
- The MAX button window is replaced with a RESTORE button window (the MIN button window is unaltered).
- System menu window:
- The RESTORE menu entry is enabled, the MAXIMIZE menu entry is disabled.
- Other changes:
- The frame window has the WS_MAXIMIZED style bit set.
- Title-button windows:
Default Processing
The default window procedure takes no action on this message, other than to set rc to FALSE.
Related Messages
- WM_MINMAXFRAME (in Frame Controls)