Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content


Called by the framework to save all documents when the application's main frame window is to be closed, or through a WM_QUERYENDSESSION message.

virtual BOOL SaveAllModified( );

Nonzero if safe to terminate the application; 0 if not safe to terminate the application.

The default implementation of this member function calls the CDocument::SaveModified member function in turn for all modified documents within the application.

Header: afxwin.h

© 2015 Microsoft