单文档如何切成T型视,
就是先切上下两个视,
再任选一个视,将其切成左右两个!谢谢,

解决方案 »

  1.   

    先切上下两个视,下面那个不要做成视,再用另一个splitter切。
      

  2.   

    CRect rect;
    GetClientRect(&rect);     if(m_wndSplitter.CreateStatic(this,4,1)==NULL) 
                  return FALSE;
         m_wndSplitter.CreateView(0,0, RUNTIME_CLASS(CShowTvView),CSize(rect.Width(), rect.Height() / 4), pContext); 
         m_wndSplitter.CreateView(1,0, RUNTIME_CLASS(CShowTvView),CSize(rect.Width(), rect.Height() / 4),pContext); 
     m_wndSplitter.CreateView(2,0, RUNTIME_CLASS(CShowTvView),CSize(rect.Width(), rect.Height() / 4), pContext); 
     m_wndSplitter.CreateView(3,0, RUNTIME_CLASS(CShowTvView),CSize(rect.Width(), rect.Height() / 4),pContext); 

    strcpy( ((CShowTvView *)m_wndSplitter.GetPane(0, 0))->m_szWorkName, "一工位" );
    strcpy( ((CShowTvView *)m_wndSplitter.GetPane(1, 0))->m_szWorkName, "二工位" );
    strcpy( ((CShowTvView *)m_wndSplitter.GetPane(2, 0))->m_szWorkName, "三工位" );
    strcpy( ((CShowTvView *)m_wndSplitter.GetPane(3, 0))->m_szWorkName, "四工位" );
      

  3.   

    protected: CSplitterWnd m_wndSplitter, m_wndSplitter1;BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/,
    CCreateContext* pContext)
    {
    // create splitter window
    if (!m_wndSplitter.CreateStatic(this, 2, 1))
    return FALSE; m_wndSplitter.SetRowInfo(0, 200, 0);
    //将下边划分为一行两列
    if(m_wndSplitter1.CreateStatic(&m_wndSplitter, 1,2, WS_CHILD|WS_VISIBLE, m_wndSplitter.IdFromColumnCol(1, 0)) == NULL) 
    return FALSE;

    if( !m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CUpView), CSize(200, 600), pContext) ||
    !m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CLeftDownView), CSize(500, 400), pContext)||
    !m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CRightDownView), CSize(500, 200), pContext))
    {
    m_wndSplitter.DestroyWindow();
    return FALSE;
    }
    return TRUE;
    }
      

  4.   

    不好意思,应该是:
    if( !m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CUpView), CSize(200, 600), pContext) ||
    !m_wndSplitter1.CreateView(0, 0, RUNTIME_CLASS(CLeftDownView), CSize(500, 400), pContext)||
    !m_wndSplitter1.CreateView(0, 1, RUNTIME_CLASS(CRightDownView), CSize(500, 200), pContext))
      

  5.   

    按照 brant(brant) 的方法我已经作出来了!
    : lizmei001 兄好像是做了4×1的切分啊!
    : byry(百事罐头) 的方法还没有试!
    与我的代码对比,找到我错在哪里了!谢谢!!