WinSetFocus has a subtle bearing on message processing since it selects a new active thread and new current input receivers for system messages.

Note:

Focus may be changed by a third party.