i want to create a sub window i my main window and i want this thing to be done using windows API.
if any one knows then please reply soon
If you want these both in the same GUI window. Try this…
Once you have finished drawing what you want for your main window, use glViewPort() to select the area for your child window.
Use glClear() and then draw what you want in the child window. Once you are finished, set the viewport back to the original size before starting the next frame.
Hope this helps!
i will try this.