我做了一个静态拆分窗口,我想让每个窗口的大小不可调整,怎么才能做到呢

解决方案 »

  1.   

    http://www.csdn.net/expert/topic/857/857212.xml?temp=.6070063
      

  2.   

    可以重载CSplitterWnd的几个消息句柄:
    void CRularSplitterWnd::OnLButtonUp(UINT nFlags, CPoint point) 
    {
    // TODO: Add your message handler code here and/or call default

    CWnd::OnLButtonUp(nFlags, point);
    }void CRularSplitterWnd::OnMouseMove(UINT nFlags, CPoint point) 
    {
    // TODO: Add your message handler code here and/or call default

    CWnd::OnMouseMove(nFlags, point);
    }BOOL CRularSplitterWnd::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) 
    {
    // TODO: Add your message handler code here and/or call default

    return CWnd::OnSetCursor(pWnd, nHitTest, message);
    }void CRularSplitterWnd::OnLButtonDown(UINT nFlags, CPoint point) 
    {
    // TODO: Add your message handler code here and/or call default

    CWnd::OnLButtonDown(nFlags, point);
    }