Disabling re-sizing of the window
Hi ~
I'm just finishing off my application, and as it is very small and compact I want to disable the re-sizing of it. I there a Window Style? I couldn't find one. Or is there a piece of code for the WM_SIZE event? Please help.
Thanks;
~ Christopher Howarth
# 1 Re: Disabling re-sizing of the window
There are a couple of ways. First, don't use the "resizing" border on your app (I forget which WM style that is). The second way is to capture the WM_MINMAXINFO (http://msdn2.microsoft.com/en-us/library/ms632626.aspx) message, setting the min and max sizes to the size of your app (making min and max the same).
Viggy