I'd like to hide a scrollbar of CScrollView
-derived view in MFC application. But, I couldn't find the way to do that. I know how to diminish the size of the scrollbar to the minimum size, so I can make it invisible in that way, but I literally want to make it invisible not making it minimum size. I have to use the scrollbar while it's invisible. So, please do not suggest setting the size of scrollbar to min value.
Is there any way to make scrollbar literally invisible in CScrollView
-derived class?
There is CWnd::ShowScrollBar()
method to do that. So you can simply call:
ShowScrollBar( SB_BOTH, FALSE ); // To hide scrollbars
ShowScrollBar( SB_BOTH ); // To show scrollbars
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.