Ich möchte, das $SW_POPUP bei einer Gui wieder rückgäning gemaht wird, also das dir Gui wieder einen Normalen rahmen hat!
Beispeil:
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form2", 413, 298, 303, 219)
$Button1 = GUICtrlCreateButton("POPUP", 333, 270, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$POPUP = False
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_POPUP()
EndSwitch
WEnd
Func _POPUP()
If $POPUP = False Then
$POPUP = True
GUISetStyle ($WS_POPUP)
GUICtrlSetData ($Button1,"Kein POPUP")
ElseIf $POPUP = True Then
$POPUP = False
GUISetStyle ($WS_POPUP);Hier soll das POPUP wieder rückgänig gemacht werden!
GUICtrlSetData ($Button1,"POPUP")
EndIf
EndFunc