I'm trying to use the setwindowpos api to make a parent gui be infront of its child gui. I tried this but i dont know if i am using it correctly.
$Parent = GUICreate("Parent",200, 200)
GUISetState (@SW_SHOW)
$Child = GUICreate("Child", 200, 200, 100, 100, -1, -1, $Parent)
GUISetState (@SW_SHOW)
$iRet = DllCall("User32.dll", "int", "SetWindowPos", "Hwnd", $Child, "Hwnd", $Parent, _
"int", 100, "int", 100, "int", 100, "int", 100, "uint", $SWP_NOSIZE + $SWP_NOMOVE)