Getting an HWND for a glut window

How do I get the HWND for my glut window?

Thanks in advance.

GLUT is designed to be portable accross many platforms, so don’t expect specific Windows functions. You should be using wgl functions instead to integrate OpenGL with a windows application. Then you will have all the power you need.

/skw|d

There’s nothing stopping you calling a win32 function from a GLUT app, but you will ofcourse loose the portability stuff…

GetActiveWindow()

Will return the handle if your GLUT window is active…

Cheers