On vertical and horizontal scroll
-
I m opening the image in OnFileOpen() but when i scroll vertically or horizontally it disappears. When done from OnDraw it is doing fine.Please Help.
-
I m opening the image in OnFileOpen() but when i scroll vertically or horizontally it disappears. When done from OnDraw it is doing fine.Please Help.
I dont understand,can you more explain?
-
I dont understand,can you more explain?
-
I m opening the image in OnFileOpen() but when i scroll vertically or horizontally it disappears. When done from OnDraw it is doing fine.Please Help.
First you need handler methods for scrolling, which update the scrolled coordinates (usually the upper-left corner's coordinates). In these methods add: Invalidate (); The Invalidate () method will cause OnDraw () to be invoked. Your OnDraw () method should draw the image, starting at the current scrolled coordinates. An alternative is to use the CScrollView class, which handles scrolling for you. If you do this, the OnDraw () method should just draw the whole image.