Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual C++
Reference
Libraries Reference
MFC
Classes
CDocument Class
Member Functions
 CDocument::OnSaveDocument

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
MFC Library Reference 
CDocument::OnSaveDocument 

Called by the framework as part of the File Save or File Save As command.

virtual BOOL OnSaveDocument(
   LPCTSTR lpszPathName 
);

Parameters

lpszPathName

Points to the fully qualified path to which the file should be saved.

Nonzero if the document was successfully saved; otherwise 0.

The default implementation of this function opens the specified file, calls CObject::Serialize to write the document's data to the file, and then marks the document as clean. Override this function if you want to perform special processing when the framework saves a document. For example, you might write an application where documents represent records in a database rather than separate files.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker