Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Documents contain and manage your application's data. To use the MFC Application Wizard-supplied document class, you must do the following:
Derive a class from
CDocumentfor each type of document.Add member variables to store each document's data.
Override
CDocument'sSerializemember function in your document class.Serializewrites and reads the document's data to and from disk.
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 MFC Reference.