问题描述
有人可以告诉我有关检测和使用鼠标按钮的信息吗?我在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.
推荐答案
按下鼠标按钮时会产生Mousedown,而不是当车轮已经转动时,会产生
。 br />
-
Armin
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
e。 delta返回车轮转动的量。你在OnMouseWheel或MouseWheel事件中得到了''e'。
e.delta returns the amount the wheel has been turned. You get ''e'' in
OnMouseWheel or the MouseWheel event.
按下鼠标按钮时会引发Mousedown,而不是当转动
Mousedown is raised when a mouse button gets pressed, not when the wheel
时。 br />
-
Armin
http://www.plig.net/nnq/nquote.html
这篇关于鼠标滚轮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!