滚动条范围问题 [英] ScrollBar Range Issue
问题描述
我面临一个奇怪的问题.
我正在创建一个可滚动的图片控件.
如果图像的大小大于静态控件的大小,则只有滚动条可见.
我正在使用SetScrollInfo函数并将SCROLLINFO fmask设置为SIF_ALL,但它显示了两个滚动条.
(我发现此问题的原因是,如果设置了SIF_RANGE,则会出现两个滚动条.).
但是,如果我不选择SIF_RANGE作为属性,则滚动条会显示ok,但滚动位置不会更改.
:(
请给它一些说明,为什么会这样???
I am facing a strange problem.
I am creating one scrollable picture control.
If the size of image is greater than the static control size then only scroll bar is visible.
I am using SetScrollInfo function and set SCROLLINFO fmask to SIF_ALL but it displays the two scrollbars.
(The reason I found for this is that if SIF_RANGE is set then two scrollbars appear).
But, if I dont select the SIF_RANGE as a property then scrollbar displays ok, but position of scroll is not changed.
:(
Please please give some light on it why is it so ??
推荐答案
通过此链接进入
http://www.windowsdevelop.com/windows- Forms-general/c-richtextbox-control-scroll-bar-issue-387.shtml [ http://www.windowsdevelop.com/windows- Forms-general/c-richtextbox-control-scroll-bar-issue-387.shtml [
go through this link
http://www.windowsdevelop.com/windows-forms-general/c-richtextbox-control-scroll-bar-issue-387.shtml[^]
http://www.windowsdevelop.com/windows-forms-general/c-richtextbox-control-scroll-bar-issue-387.shtml[^]
Happy Coding :-D :rose::thumbsup:
这篇关于滚动条范围问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!