MFC
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

CDC::HIMETRICtoDP 

Use this function when you convert HIMETRIC sizes from OLE to pixels.


void HIMETRICtoDP(
   LPSIZE lpSize 
) const;

Parameters

lpSize

Points to a SIZE structure or CSize object.

If the mapping mode of the device context object is MM_LOENGLISH, MM_HIENGLISH, MM_LOMETRIC or MM_HIMETRIC, then the conversion is based on the number of pixels in the physical inch. If the mapping mode is one of the other non-constrained modes (e.g., MM_TEXT), then the conversion is based on the number of pixels in the logical inch.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.