15,979
社区成员
发帖
与我相关
我的任务
分享
CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(IDR_tmpTYPE,
RUNTIME_CLASS(CtmpDoc),
RUNTIME_CLASS(CChildFrame), // 自定义 MDI 子框架
RUNTIME_CLASS(CtmpView));
if (!pDocTemplate)
return FALSE;
AddDocTemplate(pDocTemplate);
CMultiDocTemplate* pDocTemplate2;
pDocTemplate2 = new CMultiDocTemplate(IDR_tmpTYPE,
RUNTIME_CLASS(CStartDoc),
RUNTIME_CLASS(CChildFrame), // 自定义 MDI 子框架
RUNTIME_CLASS(CStartView));
if (!pDocTemplate2)
return FALSE;
AddDocTemplate(pDocTemplate2);