PyCWnd.CalcWindowRect

(left, top, right, bottom) = CalcWindowRect(rect, nAdjustType )

Computes the size of the window rectangle based on the desired client rectangle size. The resulting size can then be used as the initial size for the window object.

Parameters

rect : (left, top, right, bottom)

The size to calculate from

nAdjustType=adjustBorder : int

An enumerated type used for in-place editing. It can have the following values: CWnd::adjustBorder = 0, which means that scrollbar sizes are ignored in calculation; and CWnd::adjustOutside = 1, which means that they are added into the final measurements of the rectangle.

MFC References

CWnd::CalcWindowRect