Поделиться через


CDocTemplate::CloseAllDocuments

Call this member function to close all open documents.

virtual void CloseAllDocuments(
   BOOL bEndSession 
);

Parameters

  • bEndSession
    Specifies whether or not the session is being ended. It is TRUE if the session is being ended; otherwise FALSE.

Remarks

This member function is typically used as part of the File Exit command. The default implementation of this function calls the CDocument::DeleteContents member function to delete the document's data and then closes the frame windows for all the views attached to the document.

Override this function if you want to require the user to perform special cleanup processing before the document is closed. For example, if the document represents a record in a database, you may want to override this function to close the database.

Requirements

Header: afxwin.h

See Also

Reference

CDocTemplate Class

Hierarchy Chart

CDocTemplate::OpenDocumentFile

CDocTemplate::SaveAllModified

Other Resources

CDocTemplate Members