• Advertisement
Sign in to follow this  

more window problems

This topic is 3625 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

How can I prevent a window from being resized or maximised as this changes the dimensions and messes a bunch of stuff up...

Share this post


Link to post
Share on other sites
Advertisement
There are a lot of different ways. Two options are processing the WM_SIZING window message or creating your window without a border and the maximize/minimize button window styles.

Share this post


Link to post
Share on other sites
I tried processing the WM_SIZEING message so that it didn't get default processed but the window can still be resized :(

I'm not sure what you mean by the minimise/maximise buttons? I'm assuming it's something I add to the window create?


hwnd = CreateWindowEx(
NULL,
"window",
caption.c_str(),
WS_OVERLAPPEDWINDOW | WS_VISIBLE,//here?
0, 0,
window_width, window_height,
NULL,
NULL,
hInstance,
NULL);

Share this post


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

  • Advertisement