1
不要在class wizard中加
在project->add to project->new class中加
2
那不知道

解决方案 »

  1.   

    我刚试了一下,直接建立自己的继承类是可以的
    在class wizard里建立没试过
      

  2.   

    刚试了一下,在class wizard中加的也可以阿
      

  3.   

    是不是你的CLabel某些成员不给继承阿?
      

  4.   

    project->add to project->new class是什么是不是就是project->add to project->new啊
    但是用那个不是都么手写了 很麻烦的 我就是想找一个快捷的方法
    肯定是可以继承的您是怎么加的mfc还是generic class???????
    用generic class增加后CIcon的Message Maps中没有东西,member variables也无法用CIcon的class CLable : public CStatic
    {
    public:
    CLable();
    virtual ~CLable();protected:
    void OnMouseOut();
    void OnMouseOver();
    HCURSOR m_hCursor;
    //{{AFX_MSG(CLable)
    afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
    afx_msg void OnMouseMove(UINT nFlags, CPoint point);
    //}}AFX_MSG DECLARE_MESSAGE_MAP()
    };
      

  5.   

    any method u like
    but at the end u will change the class to derive from CLableso u can just define a CTest::public CLable{};
    to test if everything is ok first
      

  6.   

    in the above CLable,what members do u want to derive from it?
      

  7.   

    delete the .tcb ,recompile to try thenall ok here
      

  8.   

    不好意思.tcb是什么?是扩展名吗?我没有找到啊.
      

  9.   


    不要轻易说是VC的bug就像以前我的一个同事使用BCB,程序一出问题就说是borland的bug.结果测试人员一发现问题就对他说:“喂:你的borland又出问题了,你去和borland联系一下”。
      

  10.   

    有问题.clw,.ncb我是一起删,一般者OK