SDI????应该是单视吧
MDI才是多视呢.程序都好大喔.知道是干嘛的就行了呗,以后慢慢来嘛

解决方案 »

  1.   

    《Visual C++程序模块集锦》上有个例子
    你要不要。
      

  2.   

    单文档程序实现多视:
    http://www.vckbase.com/article/doc_view/0010.htm
    多文档和切割视:
    http://www.vckbase.com/article/doc_view/0006.htm
      

  3.   

    《Visual C++程序模块集锦》哪里有download,我想在outlook类界面中切换多视,
    主要是FormView和HtmlView,ListView,用csdn<程序员大本营>介绍的方法,FormView
    之间切换可以,用HtmlView就出现非法操作,我还是没搞明白为何,各位帮帮我吧.
    void CMainFrame::ChangeForm(CRuntimeClass * pRTClass)
    { CRect cr;
    GetClientRect(&cr);
    CSize paneSize1(3*cr.Width()/4, cr.Height());
    CCreateContext Context;
    Context.m_pNewViewClass = pRTClass;此处不屏蔽,则出现非法操作,屏蔽则可切换FormView,而HtmlView出现非法操作
    //Context->m_pCurrentDoc=((COutBarDemoApp*)AfxGetApp())->m_pDoc;
    //Context->m_pNewDocTemplate=Context->m_pCurrentDoc->GetDocTemplate();
    Context.m_pCurrentFrame=this;
             Context.m_pLastView=(CView*)wndSplitter.GetPane(0,0);

    wndSplitter.DeleteView(0, 1);
    wndSplitter.CreateView(0, 1,pRTClass,paneSize1, &Context);

    CView* pView=(CView*)wndSplitter.GetPane(0,1);
    pView->GetParentFrame()->RecalcLayout();
       
    wndSplitter.RecalcLayout();
    pView->OnInitialUpdate(); 
        wndSplitter.SetActivePane(0,1);
    }
      

  4.   

    搞定了,我换了一个Demo_OutLook例程,一试便成