sshrum Posted August 15, 2006 Posted August 15, 2006 What style do I need to use to make my GUI windows *not* resizable. I'd also like to turn off the maximize button as well. TIA Sean Shrum :: http://www.shrum.net All my published AU3-based apps and utilities 'Make it idiot-proof, and someone will make a better idiot'
Abu Rashid Posted August 15, 2006 Posted August 15, 2006 $WS_MAXIMIZEBOX 0x00010000 Creates a window that has a maximize button. Cannot be combined with the WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also be specified. $WS_SIZEBOX 0x00040000 Creates a window that has a sizing border. Same as the WS_THICKFRAME style. Its all there in the help files. Also if you use Scite, try creating a GUI with the Koda tool and then play around with its options to see what they do.
Zedna Posted August 15, 2006 Posted August 15, 2006 If setting some GUI styles will not satisfy you you can try WM_GETMINMAXINFO #include <GUIConstants.au3> Const $WM_GETMINMAXINFO = 0x24 GUICreate("Test GUI",500,500,-1,-1,BitOR($GUI_SS_DEFAULT_GUI,$WS_SIZEBOX)) GUISetState (@SW_SHOW) GUIRegisterMsg($WM_GETMINMAXINFO, "MY_WM_GETMINMAXINFO") While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Func MY_WM_GETMINMAXINFO($hWnd, $Msg, $wParam, $lParam) $minmaxinfo = DllStructCreate("int;int;int;int;int;int;int;int;int;int",$lParam) DllStructSetData($minmaxinfo,7,400) ; min X DllStructSetData($minmaxinfo,8,250) ; min Y DllStructSetData($minmaxinfo,9,600) ; max X DllStructSetData($minmaxinfo,10,700) ; max Y Return 0 EndFunc Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now