Convert logical units to container units
Defined in: LogCoordinatesImpl.h
LPtoCP( LPRECT lpRect )
LPtoCP( LPSIZE lpSize )
Return Value
void
Parameters
lpPoints
A pointer to an array of points to convert.
lpRect
A logical rectangle to convert
lpSize
A logical size to convert
LPtoCP(CPoint(5, 5)) LPtoCP(CSize(5, 5))
The first call determines which point in the parents coordinate space the logical unit 5, 5 is located at. The second call determines the number of container units in 5 logical units along the X axis and 5 units along the Y axis. In other words, the first call takes the logical origin into account. The second does not, as size is independent of the origin.
nCount
The number of points in the array