I read up on msdn's scrolling example and I applied it to a large bitmap. I made it just about equal to msdn's example and it works, but not quite right.
I start my app with a small portion of the bitmap visible, and I can scroll up and down just fine; to the end and back with no issues. When I resize the window to view more of the image though, things go wrong.
Say, when the horizontal scroll bar is in its startup position at the far left, resizing the window works as normal (resizing beyond bitmap area gets black like I want), but when the bar is changed, resizing the window has very strange effects. If I resize it beyond the width of the bitmap, the image either gets warped, or other pieces of he bitmap show up, rather than just being black.
I ask if there's antoher write up on the scrolling funcutionality or if there's a common problem I have.