reuse hwnd instead of calling getWindowHandle again