Click to See Complete Forum and Search --> : bitmap


beaglebuddy
May 5th, 1999, 11:09 AM
I have a bitmap that is displayed in a window, and when I scroll the bitmap out of view and then back, it
disappears. Has anyone ever encountered this?

plumber9
May 5th, 1999, 11:17 AM
Sounds like a painting problem. Are you displaying the bitmap from a non-paint/non-draw function? If so, that is your problem.

beaglebuddy
May 6th, 1999, 10:13 AM
No. I'm doing the drawing in response to a WM_DRAW message, which causes the OnDraw() member function of my view to be called (its a doc\view app). So in my view's OnDraw() function, I call the bitmap's draw() function. It works fine except when the bitmap is scrolled out of view and then back in. Which doesn't make sense. I can scroll the bitmap around anywhere inside the view window, and it always gets redrawn correctly, but the second it leaves the view, it never comes back. Weird.