thread that created the specified window:
GetWindowThreadProcessId
PostMessage
SetForegroundWindow