Maybe you can use the FindWindow and FindWindowEx APIs to get the handle of the field you want to set the focus to and then use the SetFocus API to set it?