Поделиться через


COleControl::TransformCoords

Transforms coordinate values between HIMETRIC units and the container's native units.

void TransformCoords(
   POINTL* lpptlHimetric,
   POINTF* lpptfContainer,
   DWORD flags 
);

Параметры

  • lpptlHimetric
    Pointer to a POINTL structure containing coordinates in HIMETRIC units.

  • lpptfContainer
    Pointer to a POINTF structure containing coordinates in the container's unit size.

  • flags
    A combination of the following values:

    • XFORMCOORDS_POSITION   A position in the container.

    • XFORMCOORDS_SIZE   A size in the container.

    • XFORMCOORDS_HIMETRICTOCONTAINER   Transform HIMETRIC units to the container's units.

    • XFORMCOORDS_CONTAINERTOHIMETRIC   Transform the container's units to HIMETRIC units.

Заметки

The first two flags, XFORMCOORDS_POSITION and XFORMCOORDS_SIZE, indicate whether the coordinates should be treated as a position or a size. The remaining two flags indicate the direction of transformation.

Требования

Header: afxctl.h

См. также

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

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::AmbientScaleUnits