I have a window with scrollbars on it, in which I draw a bitmap. Everything works fine until the bitmap is scrolled out of view, and then back in. It simply disappears. Has anyone ever run into this before.
Printable View
I have a window with scrollbars on it, in which I draw a bitmap. Everything works fine until the bitmap is scrolled out of view, and then back in. It simply disappears. Has anyone ever run into this before.
Check your WM_PAINT, WM_VSCROLL, and WM_HSCROLL handlers (you need them to accomplish what you are trying to do). They should be called whenever the bitmap needs to be drawn if scrolling takes place. You may have also miscalculated something in the redrawing of the bitmap given the current scroll position.
Regards,
Paul McKenzie