Share via


Documents Samples

The SCRIBBLE sample shows how to implement a CDocument derived class. SCRIBBLE is a good model for any application that can rely on the framework's standard user interface for file handing (for example, New, Open, Close, and Save on the File menu) and the framework's automatic serialization of documents.

The following samples are cases in which you might need to override the framework's standard document behavior:

  • CHKBOOK has a record-based document. In the default implementation of the framework, the document serializes itself to and from the disk. The application updates the CHKBOOK document each time the user adds or modifies a record.
  • ENROLL has a database application that has no file-based document. Instead, ENROLL's data is kept in an external database. The role of the document in ENROLL is not to hold the data but to maintain the CRecordset objects that provide access to the database.
  • DIBLOOK has a document with an external file format. This document uses the Windows device-independent bitmap file format.
  • MULTIPAD and SUPERPAD have documents that delegate memory management of the document data to a CEditView object. The SUPERPAD sample is more advanced than the MULTIPAD sample.

See Also

MFC Samples | Categorical List of MFC Samples