I have created an application that passes a Handle of a panel to a DLL which is then used for creating a DirectX or OpenGL render window, all of which works fine.
I wish to duplicate what is rendered in the panel elsewhere (basically multiple render windows all rendering the same thing).
My approach was to do something along the lines of this:
1. Create a panel (offscreen).
2. Take 'screen shots' of the panel and render them to my render windows (sizing as appropriate).
My problem lies with the second step in that I cannot get it to render the contents of the panel that have been created via the OpenGL / DirectX rendering.
Does anyone know of a way I can render the contents of a panel (which may not be on screen) and save it to another panel or image?