PDA

View Full Version : glut window as mfc sub window (same focus)



Ishmael
01-21-2011, 03:04 AM
hello,

I am trying to display 3d objects using glutMainLoop in MFC.
I need MFC because I want a more versatile UI. I am using glut because it is the only implementation available in the AR toolkit.
So far I have succeeded in displaying a glut window by creating a new thread from the MFC window. However the glut window is not a sub-window of the MFC. They are not focused at the same time. Does anybody here know of a way to make the glut window and its calling MFC window focused at the same time?