鼠标滚轮 [英] Mouse wheel

查看:96
本文介绍了鼠标滚轮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




有人可以告诉我有关检测和使用鼠标按钮的信息吗?我在MSDN文档中找到的所有内容都是你使用e.Delta,但它没有在

中解释如何。我尝试在frm.MouseDown中检测到滚轮的滚动,但是它没有检测到它。


感谢您的帮助。 />

Hi,

Can someone lead me to info on detecting and using the mouse button? All I
can find in the MSDN docs is that you use e.Delta, but it doesn''t explain in
how. I tried detecting the roll of the wheel in the frm.MouseDown, but it
didn''t detect it.

Thank for the help.

推荐答案

" Nathan" < NK ********************* @ softhome.net> schrieb
"Nathan" <nk*********************@softhome.net> schrieb

有人可以告诉我有关检测和使用鼠标按钮的信息吗?


我想,你的意思是鼠标滚轮,而不是鼠标按钮?

我在MSDN文档中找到的只是你使用e.Delta,但是它没有解释如何。


e.delta返回车轮转动的数量。在'/ b
OnMouseWheel或MouseWheel事件中你得到''e'。

我试图在frm.MouseDown中检测到滚轮的滚动,但它没有检测到它。

Can someone lead me to info on detecting and using the mouse button?
I guess, you mean the mouse wheel, not mouse button?
All I can find in the MSDN docs is that you use e.Delta, but it
doesn''t explain in how.
e.delta returns the amount the wheel has been turned. You get ''e'' in
OnMouseWheel or the MouseWheel event.
I tried detecting the roll of the wheel in
the frm.MouseDown, but it didn''t detect it.




按下鼠标按钮时会产生Mousedown,而不是当车轮已经转动时,会产生
。 br />
-

Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html



Mousedown is raised when a mouse button gets pressed, not when the wheel has
been turned.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html


好吧,也许是因为它早上太早了,或者也许是因为

VS 2002没有MouseWheel事件,但我可以''在任何地方找到它。我已经在帮助中搜索了MouseWheel和OnMouseWheel,然后想出了什么。

" Armin Zingler" < AZ ******* @ freenet.de>在消息中写道

news:%2 **************** @ TK2MSFTNGP09.phx.gbl ...
Ok, maybe it''s because it''s too early in the morning, or maybe it''s because
VS 2002 doesn''t have a MouseWheel event, but I can''t find it anywhere. I''ve
even searched for MouseWheel and OnMouseWheel in the help and came up with
nothing.
"Armin Zingler" <az*******@freenet.de> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
"森" < NK ********************* @ softhome.net> schrieb
"Nathan" <nk*********************@softhome.net> schrieb

有人可以告诉我有关检测和使用鼠标按钮的信息吗?
我想,你的意思是鼠标滚轮,而不是鼠标按钮?

Can someone lead me to info on detecting and using the mouse button?
I guess, you mean the mouse wheel, not mouse button?
我在MSDN文档中找到的就是你使用e.Delta,但它没有解释如何。
All I can find in the MSDN docs is that you use e.Delta, but it
doesn''t explain in how.



e。 delta返回车轮转动的量。你在OnMouseWheel或MouseWheel事件中得到了''e'。



e.delta returns the amount the wheel has been turned. You get ''e'' in
OnMouseWheel or the MouseWheel event.

我试图在frm.MouseDown中检测到滚轮的滚动,但它没有检测到它。
I tried detecting the roll of the wheel in
the frm.MouseDown, but it didn''t detect it.



按下鼠标按钮时会引发Mousedown,而不是当转动



Mousedown is raised when a mouse button gets pressed, not when the wheel



时。 br />
-
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html



嗨Nathan,

http://msdn.microsoft.com/library/de...wheeltopic.asp

我希望这有帮助?


Cor
Hi Nathan,

http://msdn.microsoft.com/library/de...wheeltopic.asp

I hope this helps?

Cor
好吧,也许是因为早上太早了,或者可能是
因为VS 2002没有MouseWheel事件,但我无处可寻。
我甚至在帮助中搜索了MouseWheel和OnMouseWheel,并且没有找到任何内容。
Ok, maybe it''s because it''s too early in the morning, or maybe it''s because VS 2002 doesn''t have a MouseWheel event, but I can''t find it anywhere. I''ve even searched for MouseWheel and OnMouseWheel in the help and came up with
nothing.



这篇关于鼠标滚轮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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