Click to See Complete Forum and Search --> : Window Size


UnfitElf
May 21st, 2006, 11:15 PM
Hi People,

Sorry if the following question has been asked b4.

I have a main window that i dont want the user to be able to resize smaller than a set value for width and height.

I could use the WM_SIZE message and re-size the window back to the minimum size if it goes smaller than i want it however, this does not stop the little gray rectangle apearing to size the window smaller than i will allow.

With programes like windows media player the grey 'sizing' rectancle is also limited.

How could i achieve this?
Thanks

wildfrog
May 22nd, 2006, 12:02 AM
Take a look at WM_GETMINMAXINFO (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowmessages/wm_getminmaxinfo.asp).

- petter

UnfitElf
May 22nd, 2006, 12:07 AM
Thankyou VERY much, hugly apreciated!! :)