如题,谢谢

解决方案 »

  1.   

    MSDN下有一个例子:VIEWEX,这个例子中由静态分割的操作,你看看吧!
      

  2.   

    按照netant的样式切分BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
    {
    // TODO: Add your specialized code here and/or call the base class

    //return CFrameWnd::OnCreateClient(lpcs, pContext);

    CRect rect;
    this->GetClientRect( &rect ); 

    BOOL flag = m_splitterLeftWnd.CreateStatic( this, 1, 2 );
    if( !m_splitterLeftWnd.CreateView( 0, 0, RUNTIME_CLASS( CXmlTree ), CSize( 180, 0 ), pContext))
    return false; flag = m_splitterRightWnd.CreateStatic( &m_splitterLeftWnd, 2, 1, WS_CHILD|WS_VISIBLE,
    m_splitterLeftWnd.IdFromRowCol( 0, 1 )); if( !m_splitterRightWnd.CreateView( 0, 0, RUNTIME_CLASS( CEditXmlView ), CSize( 0, (5*(rect.bottom-rect.top)/7)), pContext))
    return false;
    if( !m_splitterRightWnd.CreateView( 1, 0, RUNTIME_CLASS( CInputXpathString ), CSize( 0,(2*(rect.bottom-rect.top)/7)), pContext))
    return false; int aa = rect.bottom-rect.top; this->SetActiveView( (CView *)m_splitterLeftWnd.GetPane( 0, 0 ) );

    return flag;
    }
      

  3.   

    RUNTIME_CLASS()中括号的内容也要声明吗?