Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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: POINTA pointer to a variable of type POINT that specifies the point to transform and receives the new point after transformation.
eSource [in]
Type: COORD_SYSTEMA COORD_SYSTEM value that specifies the current frame of reference for the point.
eDestination [in]
Type: COORD_SYSTEMA 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: IHTMLElementA 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.