http://bugs.winehq.org/show_bug.cgi?id=28447
--- Comment #11 from Dmitry Timoshkov dmitry@baikal.ru 2011-11-23 21:56:34 CST --- This is not entirely correct fix. My tests show that HCBT_SETFOCUS hook is still called in the case of SetFocus called on a top-level WS_CHILD window. SetActiveWindow already does check for a WS_CHILD window being activated, so my fix was to move the WS_CHILD check down to set_active_window, and handle a failure returned by it in SetFocus. That avoids introducing a duplicate check for WS_CHILD.