Hallo AutoIt Community!
Habe jetzt wieder mal ein neues Problem, und leider noch keine Lösung in Aussicht.
Achtung! Das GUI MUSS "GUISetOnEvent" haben...
Spoiler anzeigen
#include<WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#include <String.au3>
#include <GuiTab.au3>
#include <GuiImageList.au3>
Opt("GUIOnEventMode", 1)
_GUI_Main()
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]Func _GUI_Main()
Global $hGUI = GUICreate("Test", 500, 500, -1, -1, BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU, $WS_CLIPCHILDREN))
GUISetOnEvent($GUI_EVENT_CLOSE, "GUIClose")
GUISetOnEvent($GUI_EVENT_MINIMIZE, "GUIMinimize")
GUISetOnEvent($GUI_EVENT_MAXIMIZE, "GUIMaximize")
GUISetOnEvent($GUI_EVENT_RESTORE, "GUIRestore")
GUISetState()
_GUI_About()
EndFunc
[/autoit] [autoit][/autoit] [autoit]Func _GUI_About()
Global $hGUI2 = GUICreate("Test2", 300, 300, 10, 10)
_WindowInWindow($hGUI,$hGUI2)
GUISetState()
EndFunc
While 1
Sleep(1)
WEnd
Func GUIClose()
Exit(1)
EndFunc
Func GUIMaximize()
EndFunc
Func GUIMinimize()
EndFunc
Func GUIRestore()
EndFunc
Func _WindowInWindow($MainGui,$ChildGui)
$nExStyle = DllCall("user32.dll", "int", "GetWindowLong", "hwnd", $ChildGui, "int", 0xEC)
DllCall("user32.dll", "int", "SetWindowLong", "hwnd", $ChildGui, "int", 0xEC, "int", BitOR($nExStyle[0], $WS_EX_MDICHILD))
DllCall("user32.dll", "int", "SetParent", "hwnd", $ChildGui, "hwnd", $MainGui)
EndFunc
Hat sich erledigt...
https://autoit.de/index.php?page…41585#post41585
danke