CFrameWnd::InModalState
Visual Studio 2012
Call this member function to check if a frame window is modal or modeless.
BOOL InModalState( ) const;
Call this member function to check if a frame window is modal or modeless.
BOOL InModalState( ) const;