CDC::LPtoDP 

voidLPtoDP(LPPOINTlpPoints**,intnCount=1)const;**

voidLPtoDP(LPRECTlpRect**)const;**

voidLPtoDP(LPSIZElpSize**)const;**

Parameters

lpPoints

Points to an array of points. Each point in the array is a POINT structure or a CPoint object.

nCount

The number of points in the array.

lpRect

Points to a RECT structure or a CRect object. This parameter is used for the common case of mapping a rectangle from logical to device units.

lpSize

Points to a SIZE structure or a CSize object.

Remarks

Converts logical units into device units. The function maps the coordinates of each point, or dimensions of a size, from GDI’s logical coordinate system into a device coordinate system. The conversion depends on the current mapping mode and the settings of the origins and extents of the device’s window and viewport.

The x- and y-coordinates of points are 2-byte signed integers in the range –32,768 through 32,767. In cases where the mapping mode would result in values larger than these limits, the system sets the values to –32,768 and 32,767, respectively.

CDC OverviewClass MembersHierarchy Chart

See Also   CDC::DPtoLP, CDC::HIMETRICtoLP, , CDC::GetWindowOrg, CDC::GetWindowExt