共用方式為


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

Reference

CDocTemplate Class

Hierarchy Chart

CDocTemplate::RemoveDocument

CMultiDocTemplate Class

CSingleDocTemplate Class