Visual Studio 2010 - Visual C++
CDC::ScaleWindowExt
Modifies the window extents relative to the current values.
virtual CSize ScaleWindowExt( int xNum, int xDenom, int yNum, int yDenom );
Parameters
Return Value
The previous window extents (in logical units) as a CSize object.
Remarks
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.
Requirements
Header: afxwin.h
See Also