dies hier ist von Xeno
Spoiler anzeigen
[autoit]
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$breite_min = 830
$breite_max = 930
$hoehe_min = 430
$hoehe_max = 930
GUICreate("GUI", $breite_max, $hoehe_max, -1, -1, $WS_THICKFRAME)
GUISetState()
GUIRegisterMsg($WM_GETMINMAXINFO, "MY_WM_GETMINMAXINFO")
[/autoit] [autoit][/autoit] [autoit]Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
Func MY_WM_GETMINMAXINFO($hWnd, $msg, $wParam, $lParam)
$minmaxinfo = DllStructCreate("int;int;int;int;int;int;int;int;int;int", $lParam)
DllStructSetData($minmaxinfo, 7, $breite_min) ; min X
DllStructSetData($minmaxinfo, 8, $hoehe_min) ; min Y
DllStructSetData($minmaxinfo, 9, $breite_max) ; max X
DllStructSetData($minmaxinfo, 10, $hoehe_max) ; max Y
Return 0
EndFunc ;==>MY_WM_GETMINMAXINFO