c# - 如何获得鼠标滚轮垂直滚动率

标签 c# c++ visual-c++ mfc

我目前正在开发一个自定义控件,为了实现垂直滚动,我希望能够获取配置的垂直滚动率(描述 here)。 我会使用此设置将控件移动 [X] 行。

最佳答案

你可以从SystemParametersInfo得到它与 SPI_GETWHEELSCROLLLINES 一起运行。

Retrieves the number of lines to scroll when the vertical mouse wheel is moved. The pvParam parameter must point to a UINT variable that receives the number of lines. The default value is 3.

关于c# - 如何获得鼠标滚轮垂直滚动率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35092726/

相关文章:

c# - 为什么在 timer2 tick 事件中调用两个函数时应用程序运行如此缓慢?

c# - 使用接口(interface)在 C++ 中使用通用容器的最佳方法是什么(即等同于在 C# 中将 IEnumerable 作为参数)

visual-c++ - 奇怪的 VC10 链接器错误

c++ - '初始化' : truncation from 'int' to 'char'

c++ - 如何消除mfc中的链接错误?

c# - 为什么 System.Design.dll 的引用还没有添加到 Visual Studio 中?

c# - 计时器之谜 - Forms.Timer 与 Threading.Timer

c# - 如何轻松地为一段 C# 代码计时?

c++ - 赋值运算符左边的三元条件运算符

C++ MoveFile 为 Windows Server 上的目录移动提供不一致的 ERROR_ACCESS_DENIED