This method is called by the framework when the document is closed, typically as part of the File Close command. The default implementation of this method calls the DeleteContents method to delete the document’s data and then closes the frame windows for all the views attached to the document.
Override this method if you want to perform special cleanup processing when the framework closes a document.
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 |
virtual void OnCloseDocument( );
CDocument::DeleteContents, CDocument::OnNewDocument, CDocument::OnOpenDocument