View Full Version : is it possible to remove the title bar of an OpenGL window?

03-09-2005, 10:52 AM
i find that all the openGL windows created using
has a title bar.

but i don t want to show the maximizing, minimiziong and close buttons on the title bar. Is it possible to remove that?

03-10-2005, 08:48 AM
Well, I don't think you can do that with glut. (Unless you go fullscreen) You'd need windowing system dependent code to do that.

03-11-2005, 03:18 AM
If your target platform is windows you can do the trick with following code snippets used right before glutMainLoop():

HWND hThisWnd = FindWindow( "GLUT", "your window name" );
if( hThisWnd )
LONG lStyle = GetWindowLong( hThisWnd, GWL_STYLE );
SetWindowLong( hThisWnd, GWL_STYLE, lStyle &

03-11-2005, 07:12 AM
Cool hack!