Modifies the window extents relative to the current values.
virtual CSize ScaleWindowExt(
Specifies the amount by which to multiply the current x-extent.
Specifies the amount by which to divide the result of multiplying the current x-extent by the value of the xNum parameter.
Specifies the amount by which to multiply the current y-extent.
Specifies the amount by which to divide the result of multiplying the current y-extent by the value of the yNum parameter.
The previous window extents (in logical units) as a CSize object.
The formulas are written as follows:
xNewWE = ( xOldWE * xNum ) / xDenom
yNewWE = ( yOldWE * yNum ) / yDenom
The new window extents are calculated by multiplying the current extents by the given numerator and then dividing by the given denominator.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback