Call this member function to close all open documents before exiting. Call HideApplication before calling CloseAllDocuments.
void CloseAllDocuments( BOOL bEndSession );
| Header File | Afxwin.h | 
| Platforms | |
| Versions | 1.0 and later | 
| Complete documentation | Visual C++ documentation | 
CWinApp Overview, CWinApp Member Functions, Application Architecture Classes, CWinApp::SaveAllModified, CWinApp::HideApplication, HideApplication