Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm creating an MFC dov-view based application for image viewing. I need to avoid scroll bars displayed in right & bottom side of the view area while retailing the scroll property (ie. need to scroll the image) I tried to to disable it using SetScrollInfo method but it showing as Gray while doc size is greater than view which also reducing the effective view area also. As I don't need it can I avoid scrollbar display retaining scroll property?
Posted
Comments
Rage 21-Mar-14 8:08am    
Why are you using a CScrollView if you do not want it to be scrolled ?? Use a CView instead !
The_Inventor 22-Mar-14 23:38pm    
Maybe he wants to pan left to right, and up and down, using the mouse, and no scroll bars, so yes you are correct, they need to start with CView and go from there.
the vacuum 26-Mar-14 2:08am    
Anyway I avoided CSrollView and used CView ...
Thanks for helps..........

1 solution

Maybe this works for you:
MSDN[^]

Simply call
C++
ShowScrollBar( SB_BOTH, FALSE ); // To hide
ShowScrollBar( SB_BOTH/*, TRUE*/ ); // To show
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900