CGXAppAdapter::GetDocTemplate
virtual CDocTemplate* GetDocTemplate(CRuntimeClass* pViewClass, CRuntimeClass* pDocClass)
virtual CDocTemplate* GetDocTemplate(CCreateContext* pContext);
pViewClass
The runtime class of the view
pDocClass
The runtime class of the document
pContext
The create context that is used to identify the document template.
Remarks
The first prototype is a pure virtual function that should be overriden in your derived application adapter class or in your application. It returns the correct document template to use for the view and document classes passed in.
Helper that calls through to GetDocTemplate(CRuntimeClass* pViewClass, CRuntimeClass* pDocClass) by gleaning the parameters for the call from CCreateContext.