GetActiveWindow

2.x

  HWND GetActiveWindow(void)    

The GetActiveWindow function retrieves the window handle of the active window. The active window is either the top-level window associated with the input focus or the window explicitly made active by the SetActiveWindow function.

Parameters

This function has no parameters.

Return Value

The return value is the handle of the active window or NULL if no window was active at the time of the call.

See Also

GetCapture, GetFocus, GetLastActivePopup, SetActiveWindow