Click to See Complete Forum and Search --> : quick CScrollView question . . .


TraderBoy
October 6th, 1999, 02:50 PM
I added a view to my app (derived from CScrollView). SetScrollSizes has been called in OnInitialUpdate & I have added code to OnDraw. So why doesn't the view have scroll bars. Something else I need to do? Cannot view all the data (?) Thanks anyone.

JohnCz
October 6th, 1999, 06:13 PM
It depends how did you use SetScrollSizes.
Meaning what mapping mode did you use and how did you calculate a total size of the view, that should be equal to the size of the view below which you want to scroll bars to appear.
In MM_TEXT mapping mode size is in screen pixels.
You may consider to use SetScaleToFitSize member to adjust the size.