ChristophX86

Window in Window

Jul 8th, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.35 KB | None | 0 0
  1. Func _WindowInWindow($Child, $Parent)
  2.     $nExStyle = DllCall("user32.dll", "int", "GetWindowLong", "hwnd", $Child, "int", 0)
  3.     DllCall("user32.dll", "int", "SetWindowLong", "hwnd", $Child, "int", 0, "int", BitOR($nExStyle[0], 0x00000040))
  4.     DllCall("user32.dll", "int", "SetParent", "hwnd", $Child, "hwnd", $Parent)
  5.     Return SetError(@error, @extended)
  6. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment