Partager via


CDocTemplate::AddDocument

Use this function to add a document to a template.

virtual void AddDocument(
   CDocument* pDoc 
);

Parameters

  • pDoc
    A pointer to the document to be added.

Remarks

The derived classes CMultiDocTemplate and CSingleDocTemplate override this function. If you derive your own document-template class from CDocTemplate, your derived class must override this function.

Requirements

Header: afxwin.h

See Also

Concepts

CDocTemplate Class

CDocTemplate Members

Hierarchy Chart

CDocTemplate::RemoveDocument

CMultiDocTemplate Class

CSingleDocTemplate Class