scroll bar initial range

时间:2015-08-14 23:00:08

标签: c winapi scrollbar msdn

I am currently learning about scroll bars, the documentation says the following:

The initial range depends on the scroll bar. Standard scroll bars have an initial range of 0 through 100;

Wouldn't this mean that there are 101 values to set for the position of the scroll box? Or is this a typo and they mean 0 through 99?

1 个答案:

答案 0 :(得分:1)

假设范围为[min, max],页面为page, 职位的可能值应为[min, max - page + 1]

例如, 假设min = 0, max = 100, page = 3

enter image description here

拇指位置的有效范围是[0, 98]