VB6:启用鼠标滚轮进行控件
有人可以告诉我是否有一种简单的方法来启用鼠标滚轮进行控件(在运行时)? 我想在鼠标悬停在控件上时立即使用滚轮滚动控件。
谢谢
can someone tell me if there's an easy way to enable mousewheel for controls (in runtime)?
i want to use the wheel for scrolling controls as soon as the mouse is over them.
thx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Karl E Peterson 在此 VB6 代码,您可以放入您的项目。
Karl E Peterson shows how to make any control respond to the mousewheel in this nice article in Visual Studio Magazine, with VB6 code you can just drop into your project.
您是否看过此 vbforums 示例代码:使用任何控件启用 MouseWheel 支持
< a href="http://www.vbforums.com/showthread.php?t=388222" rel="nofollow noreferrer">参考。
Have you looked at this vbforums example code: Enabling MouseWheel Support with any control
Ref.
一种非常简单的方法是安装 Shahin Gasanov 的 VBScroll。这是为了在 VB6 IDE 中启用滚动条。即使这不是您所说的“运行时”的意思,那么无论如何它都是值得拥有的;)
One very easy way is to install VBScroll by Shahin Gasanov. This is to enable scroll bars in the VB6 IDE. Even if that's no what you meant by 'the runtime' then it's worth having anyhow ;)
这个解决方案对我来说效果很好。方法 1 http://support.microsoft.com/kb/837910
This solution works fine for me. Method 1 http://support.microsoft.com/kb/837910