PyCWnd.SetFocus

SetFocus()

Claims the input focus. The object that previously had the focus loses it.