CScrollView.. not scrolling?
Good day guys,
I am having an sdi (doc/view)... drived from CScrollView. I have initialized/enabled the scrollbars... and set its position. My document size is 2400x1600 and view size is 800x600.
Some text is on the other side of the view but my scroll bars are not moving anything... its just static to its postion... even if i try to move it from its place...it just comes back to its orignal position... with no change of view.
Any suggestions/workarounds will be highly appreciated.
Re: CScrollView.. not scrolling?
I had this exact problem, and it was a tough to find but simple fix. When I changed my view from being derived from CView to CScrollView, I missed changing the reference in the message map... In my case
BEGIN_MESSAGE_MAP(CLayoutView, CView)
should have been:
BEGIN_MESSAGE_MAP(CLayoutView, CScrollView)
Once I found and corrected this error, the view started scrolling as expected.