如何更改CScrollBar的滚动框(拇指)的大小?

时间:2022-11-25 14:50:26

I can't find any method to change it. Any help will be appreciated!

我找不到任何方法来改变它。任何帮助将不胜感激!

1 个解决方案

#1


1  

The size of the scroll box is controlled by the range and page size of the scroll bar. You can use the CScrollBar::SetScrollInfo function to control these settings, specifically the nMin, nMax, and nPage members of the SCROLLINFO structure.

滚动框的大小由滚动条的范围和页面大小控制。您可以使用CScrollBar :: SetScrollInfo函数来控制这些设置,特别是SCROLLINFO结构的nMin,nMax和nPage成员。

You can find more information on scroll bars on this page in MSDN - read the "Scroll Box Position and Scrolling Range" section.

您可以在MSDN中找到有关此页面上滚动条的更多信息 - 请阅读“滚动框位置和滚动范围”部分。

#1


1  

The size of the scroll box is controlled by the range and page size of the scroll bar. You can use the CScrollBar::SetScrollInfo function to control these settings, specifically the nMin, nMax, and nPage members of the SCROLLINFO structure.

滚动框的大小由滚动条的范围和页面大小控制。您可以使用CScrollBar :: SetScrollInfo函数来控制这些设置,特别是SCROLLINFO结构的nMin,nMax和nPage成员。

You can find more information on scroll bars on this page in MSDN - read the "Scroll Box Position and Scrolling Range" section.

您可以在MSDN中找到有关此页面上滚动条的更多信息 - 请阅读“滚动框位置和滚动范围”部分。