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);