Deriving a Document Class from CDocument

HomeOverviewHow Do ISampleTutorial

Documents contain and manage your application's data. To use the AppWizard-supplied document class, you must do the following:

Other Document Functions Often Overridden

You may also want to override other CDocument member functions. In particular, you will often need to override OnNewDocument and OnOpenDocument to initialize the document's data members and DeleteContents to destroy dynamically allocated data. For information about overridable members, see class CDocument in the Class Library Reference.