more window problems

Started by
1 comment, last by Sync Views 16 years, 1 month ago
How can I prevent a window from being resized or maximised as this changes the dimensions and messes a bunch of stuff up...
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.
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);

This topic is closed to new replies.

Advertisement