MFC应用程序使用多文档模板对象如何实现啊?要怎么添加类和资源?
pDocTemplate1 = new CMultiDocTemplate(
IDR_MYMDTYPE1,
RUNTIME_CLASS(CWordDoc1),
RUNTIME_CLASS(CWordChildFrame1), // custom MDI child frame
RUNTIME_CLASS(CWordView1));
AddDocTemplate(pDocTemplate1);
pDocTemplate2 = new CMultiDocTemplate(
IDR_MYMDTYPE2,
RUNTIME_CLASS(CWordDoc2),
RUNTIME_CLASS(CWordChildFrame2), // custom MDI child frame
RUNTIME_CLASS(CWordView2));
AddDocTemplate(pDocTemplate2);
pDocTemplate1 = new CMultiDocTemplate(
IDR_MYMDTYPE1,
RUNTIME_CLASS(CWordDoc1),
RUNTIME_CLASS(CWordChildFrame1), // custom MDI child frame
RUNTIME_CLASS(CWordView1));
AddDocTemplate(pDocTemplate1);
pDocTemplate2 = new CMultiDocTemplate(
IDR_MYMDTYPE2,
RUNTIME_CLASS(CWordDoc2),
RUNTIME_CLASS(CWordChildFrame2), // custom MDI child frame
RUNTIME_CLASS(CWordView2));
AddDocTemplate(pDocTemplate2);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货