I'm currently developping a custom control, and, to implement vertical scrolling, I want to be able to fetch the configured vertical scroll rate (described here). I would use this setting to move the control by [X] number of lines.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can get it from SystemParametersInfo function with 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.