The ControlSetFocus function sets the keyboard focus to the specified window.
- Parameters:
-
| hWnd | Handle to the window that will receive the keyboard input. |
- Returns:
- If the function succeeds, the return value is the handle to the window that previously had the keyboard focus. If the hWnd parameter is invalid, the return value is 0.