http://www.csdn.net/expert/topic/651/651440.xml?temp=.2895777
新建时如何直接打开所需要的DocTemplate

解决方案 »

  1.   

    CMultiDocTemplate* pDocTemplate;
    CMdiApp *pApp=(CMdiApp*)AfxGetApp();
    pDocTemplate = new CMultiDocTemplate(
    IDR_MDITYPE,
    RUNTIME_CLASS(CMdiDoc),
    RUNTIME_CLASS(CChildFrame), 
                      RUNTIME_CLASS(CDrawView));
    pApp->AddDocTemplate(pDocTemplate);
    pDocTemplate->OpenDocumentFile(NULL);
      

  2.   

    http://www.csdn.net/expert/topic/651/651440.xml?temp=.2895777
    不过,我没怎么看明白。