Hallo zusammen,
übergebe ich der MsgBox-Funktion den Window-Handle des Hauptfensters, wird dieses inaktiv geschaltet
[autoit]$gui = GUICreate("Hauptfenster")
GUISetState(@SW_SHOW)
MsgBox(0, "MsgBox", "", 0, $gui)
Bei diesem Beispiel ist es nicht möglich auf das Hauptfenster zuzugreifen, solange die MsgBox noch geöffnet ist.
Dieses Verhalten möchte ich gern bei zwei Fenstern erzielen. Hier klappt es leider nicht:
[autoit]#include <GUIConstantsEx.au3>
[/autoit][autoit][/autoit][autoit]$gui = GUICreate("Hauptfenster")
GUISetState(@SW_SHOW)
$child_gui = GUICreate("Kindfenster", 100, 100, -1, -1, -1, -1, $gui)
GUISetState(@SW_SHOW)
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
Ich kann trotz geöffnetem Kindfenster auf das Hauptfenster zugreifen.
GUISetState(@SW_DISABLE, $gui)
[/autoit]
Das wäre eine Möglichkeit, aber kann man es nicht über die Styles des Kindfensters bzw. Hauptfensters erreichen?
Vielen Dank im Voraus