win32ui.GetFocus

PyCWnd = GetFocus()

Retrieves the window with the focus.

Return Value

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