CDocument::OnNewDocument

This method is called by the framework as part of the File New command. The default implementation of this method calls the DeleteContents method to ensure that the document is empty and then marks the new document as clean.

Override this method to initialize the data structure for a new document. You should call the base class implementation of this method from your override.

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 OnNewDocument( );

See Also

CDocument::CDocument, CDocument::DeleteContents, CDocument::OnCloseDocument, CDocument::OnOpenDocument, CDocument::OnSaveDocument