doublebuffering four viewports?

I programmed an application on Win NT with four viewports(every viewport has its own DC). Now the viewports are supposed to be doublebuffered.

How can I use doublebuffering for this? And how do I do it in C++?

act as usual. every DC should have a RC attached to it, so issue a SwapBuffers(DC) for any viewport.


I’ve done this too with MFC and 4 viewports. I setup the DC with my view, there’s only 1 for the 4 viewports. Likewise with the Rendering context. I draw each viewport AND THEN swap buffers. It works fine. Hope this helps