Partager via


TransformPoint method

Changes a point's relative frame of reference from one coordinate system to another.

Syntax

HRESULT retVal = object.TransformPoint(pPoint, eSource, eDestination, pIElement);

Parameters

  • pPoint [in, out]
    Type: POINT

    A pointer to a variable of type POINT that specifies the point to transform and receives the new point after transformation.

  • eSource [in]
    Type: COORD_SYSTEM

    A COORD_SYSTEM value that specifies the current frame of reference for the point.

  • eDestination [in]
    Type: COORD_SYSTEM

    A COORD_SYSTEM value that specifies the new frame of reference that the point's current coordinates should be transformed to. This parameter cannot be set to COORD_SYSTEM_CONTENT.

  • pIElement [in]
    Type: IHTMLElement

    A pointer to an IHTMLElement interface that specifies the relative element when eSource is set to COORD_SYSTEM_CONTENT.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.