Share via


CDocTemplate::CloseAllDocuments

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

Call this member function to close all open documents. 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.

CDocTemplate OverviewClass MembersHierarchy Chart

See Also   CDocTemplate::OpenDocumentFile, CDocTemplate::SaveAllModified