CDocument::SaveModified

This method is called by the framework before a modified document is closed. The default implementation of this method displays a message box asking the user whether to save the changes to the document, if any have been made.

Override this method if your program requires a different prompting procedure. This is an advanced overridable.

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 BOOL SaveModified( );

See Also

CDocument::CanCloseFrame, CDocument::IsModified, CDocument::OnNewDocument, CDocument::OnOpenDocument, CDocument::OnSaveDocument