Original Post
I am writing a windowed program that contains child windows.
What I want to do is restrict rendering to the client area of the window that calls the rendering code (in a WM_PAINT message). That should make all coordinates relative to each windows client area and clipping should occur correctly. Currently when I tell OpenGL to render a triangle (from within a child window procedure) at 0,0 (orthogonal) it is ALWAYS at 0,0 on the PARENT window.
I am assigning each window its own Device Context using the CS_OWNDC window style.
If I dont use wglMakeCurrent I get what is described above, if I do I get a weird colored mess.
Can anyone explain how to correctly implement child windows while using OpenGL?
If anyone needs/wants more explaining or some code let me know.
Thanks!
Will Reynard