moving display lists to new window

I’m trying to simplify a overhead view of a main opengl rendering. The overhead view needs to be displayed in a smaller sperate window above the main rendering. What I would like to do is use the display list of the orginal rendering. I’ve tried passing the HDC of the new overhead window when swapping buffers but it just hangs up the application.

So my question is if you’ve created a display list can it be used to render to different windows?

You can create a new rendering context and share the display lists using the wglShareLists function. Or you can use the same rendering context to render to both windows (make it current with first window, render, then repeat it for the second window).