Sounds like you are having a similar problem to what I'm trying to solve. (See my post "Dialog Box: Bitmap gets erased when a screen is dragged over.")
I have my own application, but the problem exists for my dialog box, too.
LiquidBinary, thanks for the tip on the WM_PAINT message...