Sign in to follow this  
Funkyjive

WS_THICKFRAME replacement

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this