win32ui.GetActiveWindow

PyCWnd = GetActiveWindow()

Retrieves the active window.

Return Value

The result is a PyCWnd (or derived) object, or a win32ui.error exception is raised.