View Full Version : is it possible to remove the title bar of an OpenGL window?
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?
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.
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 &
(~(WS_MAXIMIZEBOX|WS_MINIMIZEBOX|WS_SYSMENU ) ) );
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.