CDC::DPtoLP
voidDPtoLP(LPPOINTlpPoints**,intnCount=1)const;**
voidDPtoLP(LPRECTlpRect**)const;**
voidDPtoLP(LPSIZElpSize**)const;**
Parameters
lpPoints
Points to an array of POINT structures or CPoint objects.
nCount
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.
lpSize
Points to a SIZE structure or CSize object.
Remarks
Converts device units into logical units. The function maps the coordinates of each point, or dimension of a size, 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.
CDC Overview | Class Members | Hierarchy Chart
See Also CDC::LPtoDP, CDC::HIMETRICtoDP, , POINT, RECT, CDC::GetWindowExt, CDC::GetWindowOrg