The WM_SHOWWINDOW message is sent to a window when the window is about to be hidden or shown.
WM_SHOWWINDOW
fShow = (BOOL) wParam; // show/hide flag
fnStatus = (int) lParam; // status flag
Value | Meaning |
---|---|
SW_OTHERUNZOOM | The window is being uncovered because a maximize window was restored or minimized. |
SW_OTHERZOOM | The window is being covered by another window that has been maximized. |
SW_PARENTCLOSING | The window's owner window is being minimized. |
SW_PARENTOPENING | The window's owner window is being restored. |
If an application processes this message, it should return zero.
The DefWindowProc function hides or shows the window, as specified by the message.
If a window has the WS_VISIBLE style when it is created, the window receives this message after it is created, but before it is displayed. A window also receives this message when its visibility state is changed by the ShowWindow or ShowOwnedPopups function.
The WM_SHOWWINDOW message is not sent under the following circumstances:
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 2.0 or later.
Header: Declared in winuser.h.
Windows Overview, Window Messages, DefWindowProc, ShowOwnedPopups, ShowWindow