Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

CDC::HIMETRICtoLP

Call this function to convert HIMETRIC units into logical units.

void HIMETRICtoLP( 
   LPSIZE lpSize  
) const;

lpSize

Points to a SIZE structure or CSize object.

Use this function when you get HIMETRIC sizes from OLE and wish to convert them to your application's natural mapping mode.

The conversion is accomplished by first converting the HIMETRIC units into pixels and then converting these units into logical units using the device context's current mapping units. Note that the extents of the device's window and viewport will affect the result.

Header: afxwin.h

Show:
© 2015 Microsoft