This member function is called by the framework when the document is closed, typically as part of the File Close command. The default implementation of this function calls the 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 perform special cleanup processing when the framework closes a document.
virtual void OnCloseDocument( );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CDocument Overview, CDocument Member Functions, Application Architecture Classes, CDocument::DeleteContents, CDocument::OnNewDocument, CDocument::OnOpenDocument