CMultiDocTemplate* pDocTemplateGrid = new CMultiDocTemplate(
IDR_DRAWCLTYPE,
RUNTIME_CLASS(CDrawDoc),
RUNTIME_CLASS(CSplitFrame), // custom MDI child frame
RUNTIME_CLASS(CDrawView));
AddDocTemplate(pDocTemplateGrid);
CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(
IDR_RIBBONTYPE,
RUNTIME_CLASS(CRibbonMDIDemoDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CRibbonMDIDemoView));
IDR_DRAWCLTYPE,
RUNTIME_CLASS(CDrawDoc),
RUNTIME_CLASS(CSplitFrame), // custom MDI child frame
RUNTIME_CLASS(CDrawView));
AddDocTemplate(pDocTemplateGrid);
CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(
IDR_RIBBONTYPE,
RUNTIME_CLASS(CRibbonMDIDemoDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CRibbonMDIDemoView));
AddDocTemplate(pDocTemplate);
POSITION pos = GetFirstDocTemplatePosition();
GetNextDocTemplate(pos);
CMultiDocTemplate* pDoc = (CMultiDocTemplate*)GetNextDocTemplate(pos);
pDoc->OpenDocumentFile(NULL);