PyCDC.GetWindowExt

x, y = GetWindowExt()

Gets the window extent of the device context