vc的bug???????还是什么??????? 1不要在class wizard中加在project->add to project->new class中加2那不知道 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我刚试了一下,直接建立自己的继承类是可以的在class wizard里建立没试过 刚试了一下,在class wizard中加的也可以阿 是不是你的CLabel某些成员不给继承阿? 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()}; any method u likebut 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 in the above CLable,what members do u want to derive from it? delete the .tcb ,recompile to try thenall ok here 不好意思.tcb是什么?是扩展名吗?我没有找到啊. 不要轻易说是VC的bug就像以前我的一个同事使用BCB,程序一出问题就说是borland的bug.结果测试人员一发现问题就对他说:“喂:你的borland又出问题了,你去和borland联系一下”。 有问题.clw,.ncb我是一起删,一般者OK 关于directx中鼠标取得坐标的问题! 关于SSL发包的问题 RICHEDIT插入位图 链接时出现的问题 版主请进。 出现的编译时的错误 由函数OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)生成的Brush应该如何delete? 串口 数据包粘连 用50分征求 Virtual CD 3 Version 3.0.7 Demo 的注册码 如何改变属性表中各个属性页的标题(动态) 大家讨论培训???? 用InstallShield做的安装程序,如何在程序卸载时删除注册表中的某些信息?
在class wizard里建立没试过
但是用那个不是都么手写了 很麻烦的 我就是想找一个快捷的方法
肯定是可以继承的您是怎么加的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()
};
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
不要轻易说是VC的bug就像以前我的一个同事使用BCB,程序一出问题就说是borland的bug.结果测试人员一发现问题就对他说:“喂:你的borland又出问题了,你去和borland联系一下”。