CDocTemplate::CloseAllDocuments

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

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

virtual void CloseAllDocuments( BOOL bEndSession );

See Also

CDocTemplate::SaveAllModified, CDocument::DeleteContents