I'm using FindWindow, FindWindowEx and SetWindowText to set the caption of Window1 as I click in Window2. It works fine, except the caption does not change until I set the focus back Window1.

What API can I use to get Window1 to refresh/redraw without putting the focus back on it?