各位大哥,请问MFC中 可以不可以重载 像CSplitter这样得类,如果可以,怎么重载?

解决方案 »

  1.   

    class CMySplitter:public CSplitter
    {
      

  2.   

    不行啊,我想重载CSplitterWnd,但是在CLASSWIZARD中找不到这个类,只有一个splitter,试过手工改,但是也不行,我就是想固定住分隔窗口的分隔条,网上的教程我都试过了,不行啊,求大侠指点迷津
      

  3.   


    #pragma once
    #include "stdafx.h"class CFixedSplitterWnd : public CSplitterWnd
    {
     DECLARE_DYNCREATE(CFixedSplitterWnd)protected:
     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
     afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
     afx_msg void OnMouseMove(UINT nFlags, CPoint point); DECLARE_MESSAGE_MAP()
    };