AtlHiMetricToPixel
개체의 크기 (각 단위 0.01 밀리미터)이 메트릭 단위 화면 장치의 픽셀 크기로 변환 합니다.
중요
이 함수를 실행 하는 응용 프로그램에서 사용할 수 있는 Windows 런타임.
extern void AtlHiMetricToPixel(
const SIZEL* lpSizeInHiMetric,
LPSIZEL lpSizeInPix
);
매개 변수
lpSizeInHiMetric
[in] 하이 메트릭 단위에서 개체의 크기에 대 한 포인터입니다.lpSizeInPix
[out] 하는 개체의 크기를 픽셀 단위로 반환 되는 포인터입니다.
예제
// 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);
요구 사항
헤더: atlwin.h