最好有简单明确的实例程序,能给我发一份的,谢谢.邮箱是[email protected]

解决方案 »

  1.   

    CSplitterWnd ,codeproject上面多得很.
      

  2.   

    我下了一段使用CSplitterWnd的代码,它的可以用,但我基本上照它的复制了之后还是显示不出分隔的窗口,请问是我哪里属性不对还是少了什么吗?主要是在MAINFRAME加一个CSplitter变量m_splitter然后在OnCreateClient()的处理涵数中加入如下代码 CRect cr;
    GetWindowRect( &cr );

    // Create the main splitter with 1 row and 2 columns
    m_splitter.CreateStatic( this, 1, 2 ) ;
    m_splitter.CreateView( 0, 0, RUNTIME_CLASS(CCSplitterWndView),
    CSize(cr.Width()/2, cr.Height()/2), pContext );  m_splitter.CreateView( 0, 1, RUNTIME_CLASS(CFormView1),
    CSize(cr.Width()/2, cr.Height()/2), pContext );就是做了这些,可是不行,还需要做什么吗?