BOOL DPtoLP(hDC,lpPoints,nCount)
This function converts device points into logical points. The function maps the coordinates of each point specified by the lpPoints parameter 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.
Parameter | Type/Description | |
hDC | HDC Identifies the device context. | |
lpPoints | LPPOINT Points to an array of points. Each point must be a POINT data structure. | |
nCount | int Specifies the number of points in the array. |
The return value specifies whether the conversion has taken place. It is nonzero if all points are converted. Otherwise, it is zero.