BitBlt
-
I am using this call to print a bitmap from one picture box to another: BitBlt(*m_Field.GetDC(), 0, 0, 48, 48, *m_Skin.GetDC(), 0, 0, SRCCOPY); this works but it doesn't get repainted.. for example when I minimize the dialog or drag another window on top of it. anyone know how I can make this auto refresh?
-
I am using this call to print a bitmap from one picture box to another: BitBlt(*m_Field.GetDC(), 0, 0, 48, 48, *m_Skin.GetDC(), 0, 0, SRCCOPY); this works but it doesn't get repainted.. for example when I minimize the dialog or drag another window on top of it. anyone know how I can make this auto refresh?
-
Thanks but this doesn't work for me. I tried reBlting it in OnPaint() but this didn't make it refresh all of the time.. only when going off the screen and back on.. but not when minimizing and restoring and other situations. I'm sure there has to be a proper way to do this. Any examples or suggestions?