PyCWnd.SetCapture

SetCapture()

Causes all subsequent mouse input to be sent to the window object regardless of the position of the cursor.