CDocument::OnSaveDocument

This method is called by the framework as part of the File Save or File Save As command. The default implementation of this method 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 method 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.

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 OnSaveDocument( LPCTSTR lpszPathName );

See Also

CDocument::OnCloseDocument, CDocument::OnNewDocument, CDocument::OnOpenDocument, CDocument::ReportSaveLoadException, CObject::Serialize