Jump to content
  • Advertisement
Sign in to follow this  
Funkyjive

WS_THICKFRAME replacement

This topic is 3764 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello again. This question involves the resizing of a window. I currently have the settings below as the dwexstyle and dwstyle parameters of the CreateWindowEx() function.
dwexstyle = WS_EX_APPWINDOW | WS_EX_WINDOWEDGE;
		dwstyle = WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX;
The problem is the window can be resized. I want the window to be locked at the specific size. After searching a bit I found that WS_THICKFRAME is the flag that allows resizing however taking this out leaves me with a window with no border. Is there a replacement that does not allow the window to be resized yet still look the same? I don't really want to deal with the windows resize message and then set the window back to the original. This is an alternative way to ensure the window is always the correct size but I would prefer not to do it this way. Thank you.

Share this post


Link to post
Share on other sites
Advertisement
If you take out WS_THICKFRAME, you'll still have a border around your window. The user just won't be able to resize it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!