The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
AtlHiMetricToPixel
Converts an object's size in HIMETRIC units (each unit is 0.01 millimeter) to a size in pixels on the screen device.
Important |
|---|
This function cannot be used in applications that execute in the Windows Runtime. |
extern void AtlHiMetricToPixel(
const SIZEL* lpSizeInHiMetric,
LPSIZEL lpSizeInPix
);
- lpSizeInHiMetric
[in] Pointer to the size of the object in HIMETRIC units.
- lpSizeInPix
[out] Pointer to where the object's size in pixels is to be returned.
Example
// m_sizeExtent is a member of CComControlBase that holds the // control's extents in HIMETRIC units. // Use AtlHiMetricToPixel to find the extent of the control in pixels. AtlHiMetricToPixel(&m_sizeExtent, &sz); ATLTRACE("Width = %d, Height = %d\n", sz.cx, sz.cy);
Requirements
Header: atlwin.h
Show:
