I don't want to clutter up the other thread, so I made a new one just for this topic. Can I please get an explanation of making a 'global' double buffer? I'm having trouble visualising the implementation.
From what I've been able to gather and as it's been pointed out, my code is creating / destroying the bitmap used as the buffer each time the DrawMain() function gets called. I've come up with the following; modified from my previous attempt. Going by my understanding, I put hdcBuffer = CreateCompatibleDC( hdc ); and destroy the buffer on exit.
If …