CWnd::ContinueModal
This member function is called by RunModalLoop to determine when the modal state should be exited.
virtual BOOL ContinueModal( );
Nonzero if modal loop is to be continued; 0 when EndModalLoop is called.
By default, it returns non-zero until EndModalLoop is called.
Header: afxwin.h