由于我自己另外创建了CGraphView,CGraphFrame,CGraphDoc,菜单IDR_GRAPH,当我一运行程序,显示IDR_GRAPH菜单,不用去显示IDR_MAINFRAME 和IDR_MDITYPE这些菜单与其对应的视类.
不知道我有没有说清楚...呵呵..各位有没有什么办法呀..呵呵..

解决方案 »

  1.   

    CSingleDocTemplate* pDocTemplate;
    pDocTemplate = new CSingleDocTemplate(
    IDR_MAINFRAME,
    RUNTIME_CLASS(CGraphDoc),
    RUNTIME_CLASS(CGraphFrame),       // main SDI frame window
    RUNTIME_CLASS(CGraphView));
    AddDocTemplate(pDocTemplate);
      

  2.   

    我在CMDIApp中加入以下代码:
    pEngineTemplate = new CMultiDocTemplate(
    IDR_GRAPH,
    RUNTIME_CLASS(CEngineDoc),
    RUNTIME_CLASS(CEngineFrame), // custom MDI child frame
    RUNTIME_CLASS(CEngineView));
    AddDocTemplate(pEngineTemplate);不过没有效果