TransformLocalToGlobal method

Converts a point's coordinates, expressed relative to the top left corner of the element to which a rendering behavior is attached, to coordinates relative to the top left of the client area.

Syntax

HRESULT retVal = object.TransformLocalToGlobal(ptLocal, pptGlobal);

Parameters

  • ptLocal [in]
    Type: POINT

    POINT structure that specifies the point to convert to the client area's coordinate system.

  • pptGlobal [out]
    Type: POINT

    Pointer to a POINT structure that receives the point's coordinates relative to the client area's top left corner.

Return value

Type: HRESULT

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