PyCWnd.ScreenToClient

(left, top, right, bottom) or (x, y) = ScreenToClient(rect)

Converts the screen coordinates of a given point or rectangle on the display to client coordinates.

Parameters

rect : (left, top, right, bottom) or (x,y)

The coordinates to convert.

Alternative Parameters

pnt

The coordinates to convert.

MFC References

CWnd::ScreenToClient

Return Value

The result is the same size as the input argument.