查找窗口的滚动单位
我正在尝试找到一种方法来计算滚动单位(当您单击滚动条中的向下箭头时屏幕向下移动的像素数)。 SB_LINEUP 的 msdn 文档说:
减少滚动框位置; 向数据顶部滚动 一个单位。在每种情况下,一个单位是 应用程序定义为 适合数据。
无论如何,我们是否可以找出给定窗口的 1 个滚动单元的值是多少?
任何帮助将不胜感激。 谢谢。
I'm trying to find a way to compute the scroll unit (num. of pixels the screen moves down when u click once on the down arrow in the scrollbar). The msdn documentation for SB_LINEUP says :
Decrements the scroll box position;
scrolls toward the top of the data by
one unit. In each case, a unit is
defined by the application as
appropriate for the data.
Is there anyway for us to find out what the value of 1 scroll unit is, for a given window??
Any help would be appreciated.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看
SystemInformation.MouseWheelScrollLines
属性:
Check out
SystemInformation.MouseWheelScrollLines
Property:我已经找到了一个方法来找出它。供其他人将来参考:
参考:http:// msdn.microsoft.com/en-us/library/bb787531%28VS.85%29.aspx
I've found out a way to find it out. For future reference for others:
Ref: http://msdn.microsoft.com/en-us/library/bb787531%28VS.85%29.aspx