GL in MDI

Can someone help me! How do I implement a simple GL code in a MDI app???
Thankx!

You have to create and make current a valid OpenGL context. For MS Windows use
ChoosePixelFormat
SetPixelFormat
wglCreateContext
wglMakeCurrent

You can look them all up in VC or VS docs or at msdn.microsoft.com