Don't worry, after about a 100 reruns of Karate Kid, I'd say I still am no ninja either

When a window is maximized, best would be to restore it using ShowWindow, then resize.
To get the Position of the external window, you could use the getWindowPos API, as shown here :
http://ih4x.wordpress.com/2008/05/21...-getwindowpos/