vc的bug???????还是什么???????

Ice1 2002-01-28 01:51:03
我用CLable继承CStatic,
之后我用CIcon继承CLable,但是我遇上了一些问题,虽然解决一些但是很麻烦
所以还是向各位大侠请教

问题1.CIcon在继承CLable的时候无法从mfc class中选择
其实你说不用在mfc class里选择啊,
但是不在mfc class中选择,CIcon的Message Maps中没有东西
最后我的解决是从mfc class里选的 CStatic继承的,之后又手工改成了CLable


问题2. CIcon的语法提示里没有CLable的成员函数,只有那些最基本的成员函数
这个我还没有解决
...全文
137 20 打赏 收藏 转发到动态 举报
写回复
用AI写文章
20 条回复
切换为时间正序
请发表友善的回复…
发表回复
Ice1 2002-01-29
  • 打赏
  • 举报
回复
不好意思.tcb是什么?是扩展名吗?我没有找到啊.
Ice1 2002-01-29
  • 打赏
  • 举报
回复
果然删了就ok了,为什么啊?
Ice1 2002-01-29
  • 打赏
  • 举报
回复
可是........谁能帮我解决啊...........
pzone 2002-01-29
  • 打赏
  • 举报
回复
有问题.clw,.ncb我是一起删,一般者OK
cqjiang 2002-01-29
  • 打赏
  • 举报
回复

不要轻易说是VC的bug

就像以前我的一个同事使用BCB,程序一出问题就说是borland的bug.

结果测试人员一发现问题就对他说:“喂:你的borland又出问题了,你去和borland联系一

下”。
Ice1 2002-01-29
  • 打赏
  • 举报
回复
upup
Ice1 2002-01-29
  • 打赏
  • 举报
回复
?????
jeffandjeff 2002-01-28
  • 打赏
  • 举报
回复
delete the .tcb ,recompile to try then

all ok here
Ice1 2002-01-28
  • 打赏
  • 举报
回复
不知道这个和语法提示有什么关系?
Ice1 2002-01-28
  • 打赏
  • 举报
回复
我想继承一些但不是全部
jeffandjeff 2002-01-28
  • 打赏
  • 举报
回复
in the above CLable,what members do u want to derive from it?
Ice1 2002-01-28
  • 打赏
  • 举报
回复
我试过,都继承了,但是就是没有语法提示.
jeffandjeff 2002-01-28
  • 打赏
  • 举报
回复
any method u like
but at the end u will change the class to derive from CLable

so u can just define a CTest::public CLable{};
to test if everything is ok first
Ice1 2002-01-28
  • 打赏
  • 举报
回复
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()
};
jeffandjeff 2002-01-28
  • 打赏
  • 举报
回复
是不是你的CLabel某些成员不给继承阿?
jeffandjeff 2002-01-28
  • 打赏
  • 举报
回复
刚试了一下,在class wizard中加的也可以阿
jeffandjeff 2002-01-28
  • 打赏
  • 举报
回复
我刚试了一下,直接建立自己的继承类是可以的
在class wizard里建立没试过
stoneyrh 2002-01-28
  • 打赏
  • 举报
回复
1
不要在class wizard中加
在project->add to project->new class中加
2
那不知道
Ice1 2002-01-28
  • 打赏
  • 举报
回复
真的没人吗??????
Ice1 2002-01-28
  • 打赏
  • 举报
回复
难道没人知道啊????????

1,649

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 非技术类
社区管理员
  • 非技术类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧