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::DPtoLP
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void DPtoLP( LPPOINT lpPoints, int nCount = 1 ) const;
  void DPtoLP( LPRECT lpRect ) const;
 
  Parameter   Description
 
  <lpPoints>  Points to an array of POINT structures or CPoint
              objects.
 
  <nCount>    Specifies the number of points in the array.
 
  <lpRect>    Points to a RECT structure or CRect object. This
              parameter is used for the simple case of converting one
              rectangle from device points to logical points.
 
  Remarks
 
  Converts device points into logical points. The function maps the
  coordinates of each point from the device coordinate system into GDI's
  logical coordinate system. The conversion depends on the current mapping
  mode and the settings of the origins and extents for the device's window
  and viewport.
 
  See Also
 
  CDC::LPtoDP, ::DPtoLP
 
 
                                     -♦-