SECEditViewport::LPtoDP

Converts from Logical units to Device units

Defined in: SECEditViewport.cpp

Syntax

virtual void LPtoDP(LPPOINT lpPoints, int nCount = 1) const;

virtual void LPtoDP(LPRECT lpRect) const;

virtual void LPtoDP(LPSIZE lpSize) const;

Return Value

void

Parameters

lpPoints

Points to the array of points to be converted.

nCount

Number of points in the array.

lpRect

Points to the RECT struct to be converted.

lpSize

Points to the SIZE struct to be converted.

Developer Notes

Objective Edit always has a 1 to 1 mapping between Logical and device points, so we can do a simple conversion instead of instantiating a DC to do the conversion. Additionally, this avoids the Win 95 16 bit integer GDI limitation

See Also

SECEditViewport  DPtoLP