rollo5 Posted July 27, 2016 Share Posted July 27, 2016 (edited) Good evening, I want a maximised gui with a close button only. The taskbar should be visible, so no fullscreen. With this code the taskbar isnt visible: #include <WindowsConstants.au3> $hGUI=GUICreate("Test", 500, 500, -1, -1, $WS_SYSMENU) WinSetState($hGUI, "", @SW_MAXIMIZE) GUISetState() While 1 If GUIGetMsg() = -3 Then Exit WEnd With this code the taskbar is visible, but there is a maximise button: #include <GUIConstants.au3> #Include <WindowsConstants.au3> $GUI = GUICreate("",100,100,0,0,$WS_MAXIMIZEBOX) GUISetState(@SW_SHOW) WinSetState($GUI, "", @SW_MAXIMIZE) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend So I need a mix of both. Edited July 28, 2016 by rollo5 Link to comment Share on other sites More sharing options...
rollo5 Posted July 28, 2016 Author Share Posted July 28, 2016 Okay, found a solution by myself. The maximise button is disabled, with "opt("GUIEventOptions",1)": #include <GUIConstants.au3> #Include <WindowsConstants.au3> $GUI = GUICreate("",100,100,0,0,$WS_MAXIMIZEBOX) GUISetState(@SW_SHOW) WinSetState($GUI, "", @SW_MAXIMIZE) opt("GUIEventOptions",1) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Link to comment Share on other sites More sharing options...
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