HWND SetActiveWindow(hWnd)
This function makes a top-level window the active window.
Parameter | Type/Description |
hWnd | HWND Identifies the top-level window to be activated. |
The return value identifies the window that was previously active. The SetActiveWindow function should be used with care since it allows an application to arbitrarily take over the active window and input focus. Normally, Windows takes care of all activation.