Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CDC::ScaleWindowExt
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  CSize ScaleWindowExt( int xNum, int xDenom, int yNum, int yDenom );
 
  Parameter   Description
 
  <xNum>      Specifies the amount by which to multiply the current
              x-extent.
 
  <xDenom>    Specifies the amount by which to divide the current
              x-extent.
 
  <yNum>      Specifies the amount by which to multiply the current
              y-extent.
 
  <yDenom>    Specifies the amount by which to divide the current
              y-extent.
 
  Remarks
 
  Modifies the window extents relative to the current values. The formulas
  are written as follows:
 
  xNewVE = ( xOldVE * xNum ) / xDenom
  yNewVE = ( yOldVE * yNum ) / yDenom
 
  The new extent is calculated by multiplying the current extents by the
  given numerator and then dividing by the given denominator.
 
  Return Value
 
  The previous window extents (in logical units) as a CSize object.
 
  See Also
 
  ::ScaleWindowExt
 
 
                                     -♦-