CWinApp::CloseAllDocuments
void CloseAllDocuments( BOOL bEndSession );
Parameters
bEndSession
Specifies whether or not the Windows session is being ended. It is TRUE if the session is being ended; otherwise FALSE.
Remarks
Call this member function to close all open documents before exiting. Call HideApplication before calling CloseAllDocuments.