CWnd::OnShowWindow

Syntax

afx_msg void OnShowWindow( BOOL bShow, UINT nStatus );

Parameters

bShow

Specifies whether a window is being shown. It is TRUE if the window is being shown; it is FALSE if the window is being hidden.

nStatus

Specifies the status of the window being shown. It is 0 if the message is sent because of a ShowWindow member function call; otherwise, nStatus is one of the following values:

Value Description

SW_PARENTCLOSING Parent window is closing (being made iconic) or a pop-up window is being hidden.
SW_PARENTOPENING Parent window is opening (being displayed) or a pop-up window is being shown.

Remarks

Called when the CWnd is about to be hidden or shown. A window is hidden or shown when the ShowWindow member function is called, when an overlapped window is maximized or restored, or when an overlapped or pop-up window is closed (made iconic) or opened (displayed on the screen). When an overlapped window is closed, all pop-up windows associated with that window are hidden.

This message-handler member function calls the Default member function. Override this member function in your derived class to handle the WM_SHOWWINDOW message.

See Also

CWnd::Default, WM_SHOWWINDOW