CDC::DPtoHIMETRIC

Use this function when you give HIMETRIC sizes to OLE, converting pixels to HIMETRIC.

void DPtoHIMETRIC(
   LPSIZE lpSize 
) const;

Параметры

  • 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.

Требования

Header: afxwin.h

См. также

Основные понятия

CDC Class

CDC Members

Hierarchy Chart

CDC::DPtoLP

CDC::LPtoDP

CDC::HIMETRICtoLP

CDC::HIMETRICtoDP

CDC::LPtoHIMETRIC