谁用过sizecbar,请指教!

bbhl80 2006-08-13 07:36:47
我创建了一个单文档应用程序,想用sizecbar,添加sizecbar.cpp、sizecbar.h、scbarg.cpp、scbarg.h编译以后报错:
d:\temp\sizecbar\src\sizecbar.cpp(111) : error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CSizingControlBar::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)'
Cast from base to derived requires dynamic_cast or static_cast
d:\temp\sizecbar\src\sizecbar.cpp(259) : warning C4244: 'argument' : conversion from 'INT_PTR' to 'int', possible loss of data
d:\temp\sizecbar\src\sizecbar.cpp(542) : warning C4312: 'type cast' : conversion from 'DWORD' to 'HBRUSH' of greater size
。。。。。。

我用的是vc++2005
...全文
177 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
思危 2006-08-13
  • 打赏
  • 举报
回复
双击出错那行,转到该函数,将函数返回值由 UINT 改为 LRESULT

15,980

社区成员

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

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