Call this member function to make a frame window modal.
virtual void BeginModalState( );
Header: afxwin.h