VC++错误 'OnLButtonDown' : member function not declared in 'CYx2

编程入门 行业动态 更新时间:2024-10-15 04:24:07

VC++<a href=https://www.elefans.com/category/jswz/34/1771449.html style=错误 'OnLButtonDown' : member function not declared in 'CYx2"/>

VC++错误 'OnLButtonDown' : member function not declared in 'CYx2

没有进行消息响应函数的申明或者消息映射:
你检查下h文件中AFX_MSG与DECLARE_MESSAGE_MAP之间对OnLButtonDown申明没有,申明的格式为:
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
再检查下cpp文件中BEGIN_MESSAGE_MAP与END_MESSAGE_MAP()之间有有消息映射没有,格式为:ON_WM_LBUTTONDOWN()

更多推荐

VC++错误 'OnLButtonDown' : member function not declared in 'CYx2

本文发布于:2024-03-23 02:03:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1739142.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   OnLButtonDown   VC   member   declared

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!