🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Have the window not resizable and centered?
I am using the code off of Nehe's website on the window tutoiral and I want to know how I can center the window and not have it be resizable in OpenGL. I think I mite have a clue what it mite look like but I am not sure. I also program in other languages also...
In order to disable sizing you must change the window style to:
WS_OVERLAPPEDWINDOW - WS_THICKFRAME
WS_THICKFRAME is the part that makes a window resizable.
WS_OVERLAPPEDWINDOW - WS_THICKFRAME
WS_THICKFRAME is the part that makes a window resizable.
Cool, thanks. :) Also what is the setting to hide the button on the window that makes the window fit your screen?
if you want to remover all the min/max/close buttons use
if you just want to remove the maximize button then you would use
or your could always just use WS_POPUP wich would remove all frame around the window.
WS_OVERLAPEDWINDOWS - WS_THICKFRAME - WS_SYSMENU;
if you just want to remove the maximize button then you would use
WS_OVERLAPEDWINDOWS - WS_THICKFRAME - WS_MAXIMIZEBOX;
or your could always just use WS_POPUP wich would remove all frame around the window.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement