就这么一个一个捆绑好往里加啊,在CWinApp的InitInstance里面加,例如:
CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(
IDR_DFTYPE,
RUNTIME_CLASS(CDfDoc),
RUNTIME_CLASS(CHChildFrame), // custom MDI child frame
RUNTIME_CLASS(CLeftView));
AddDocTemplate(pDocTemplate); pDocTemplate = new CMultiDocTemplate(
IDR_WORKER_SYSTEM,
RUNTIME_CLASS(CDfDoc),
RUNTIME_CLASS(CArchiveFrame),
RUNTIME_CLASS(CDeptView));
AddDocTemplate(pDocTemplate);
pDocTemplate = new CMultiDocTemplate(
IDR_CHAXUN,
RUNTIME_CLASS(CChaDocument),
RUNTIME_CLASS(CChaxunFrame), 
RUNTIME_CLASS(CChaxunView));
AddDocTemplate(pDocTemplate);