Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
Allocate an empty bitmap the size of your display area.Make a memdc for this image.Call CDC::FillSolidRect(&ClientRect, 0x00FFFFFF); to clear it to the back ground color.BitBlt your bitmap to this DC.Bitblt this DC to your window.
I don't think you can avoid flicker without double buffering. The flicker occurs because memory associated with the image on the display is updated at the same time as the hardware pushes pixels to the screen. Have a look at:Don't Flicker! Double Buffer![^]
Well, loading again and again the CImage doesn't help the overall performance, in my opinion.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.