BOOL IsWindowVisible() const;
Returns TRUE any time an application has made CWnd visible by using the ShowWindow member function (even if CWnd is completely covered by another child or pop-up window, the return value is TRUE).
Specifies whether a given window exists on the screen. It is TRUE if it exists on the screen; otherwise FALSE.
CWnd::ShowWindow, ::IsWindowVisible