Поделиться через


CDocument::SaveModified

Called by the framework before a modified document is to be closed.

virtual BOOL SaveModified( );

Возвращаемое значение

Nonzero if it is safe to continue and close the document; 0 if the document should not be closed.

Заметки

The default implementation of this function displays a message box asking the user whether to save the changes to the document, if any have been made. Override this function if your program requires a different prompting procedure. This is an advanced overridable.

Требования

Header: afxwin.h

См. также

Основные понятия

CDocument Class

CDocument Members

Hierarchy Chart

CDocument::CanCloseFrame

CDocument::IsModified

CDocument::OnNewDocument

CDocument::OnOpenDocument

CDocument::OnSaveDocument