MvcViewport::DPtoLP

Convert device units to logical units

Defined in: MvcViewport.cpp

Syntax

DPtoLP( LPPOINT lpPoints, int nCount ) const

DPtoLP( LPRECT lpRect ) const

DPtoLP( LPSIZE lpSize ) const

Return Value

void

Parameters

lpPoints

An array of points to convert

nCount

The number of points in the array

lpRect

A rectangle to convert

lpSize

A size to convert

Comments

This is a convenience function for the controller. It allows the controller to easily map device to logical points without having to instantiate a DC.