在自定义控件中响应OnMouseWheel事件 [英] Respond OnMouseWheel Event in a custom control

查看:246
本文介绍了在自定义控件中响应OnMouseWheel事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个派生自CWnd的类来控制自定义控件。



可以捕获OnVScroll事件,但OnMouseWheel不能。



当鼠标滚轮移动时如何使类捕获事件?

I write a class that derived from CWnd to control a custom control.

The OnVScroll event can be catched, but the OnMouseWheel can not.

How to make the class catch the event when mouse wheel moves?

推荐答案

我没有遇到任何问题。请参阅: http://msdn.microsoft.com/en-us /library/eff58fe7%28v=vs.80%29.aspx [ ^ ]。



你可能做错了什么,很难说没看到你的代码示例,你没有费心去展示。所以,对不起,但你得到的建议和你要求的一样多。



-SA
I's caught without a problem. Please see: http://msdn.microsoft.com/en-us/library/eff58fe7%28v=vs.80%29.aspx[^].

You might have done something wrong, hard to say without seeing your code sample, which you did not bother to show. So, sorry, but you got only as much of advice as you asked for.

—SA


这篇关于在自定义控件中响应OnMouseWheel事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆