Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <GUIConstants.au3>
- #include <WindowsConstants.au3>
- #include <WinAPI.au3>
- $Form1 = GUICreate("Hallo", 100, 100, 0, 0)
- GUISetState(@SW_SHOW)
- $Form2 = GUICreate("ich", 100, 100, 100, 100, -1, -1, $Form1)
- GUISetState(@SW_SHOW)
- $Form3 = GUICreate("bin Tobi", 100, 100, 200, 200, -1, -1, $Form2)
- GUISetState(@SW_SHOW)
- If _WinAPI_GetParent($Form3) = $Form2 Then
- ConsoleWrite("3 = Child von 2" & @CRLF)
- EndIf
- If _WinAPI_GetParent($Form3) = $Form1 Then
- ConsoleWrite("3 = Child von 1" & @CRLF)
- EndIf
- If _WinAPI_GetParent($Form2) = $Form1 Then
- ConsoleWrite("2 = Child von 1" & @CRLF)
- EndIf
- If _WinAPI_GetParent($Form2) = $Form3 Then
- ConsoleWrite("2 = Child von 3" & @CRLF)
- EndIf
- If _WinAPI_GetParent($Form1) = $Form2 Then
- ConsoleWrite("1 = Child von 2" & @CRLF)
- EndIf
- If _WinAPI_GetParent($Form1) = $Form3 Then
- ConsoleWrite("1 = Child von 3" & @CRLF)
- EndIf
Advertisement
Add Comment
Please, Sign In to add comment