Share via


TPChangePos (Windows Embedded CE 6.0)

1/6/2010

This function moves the viewport by a specified offset, displaying animation.

Syntax

HRESULT TPChangePos(
    HANDLE hTileProxy,
    INT32 dxPage,
    INT32 dyPage);

Parameters

  • hTileProxy
    [in] Handle to TileProxy.
  • dxPage
    [in] The number of pixels to move the viewport x-coordinate (left or right). This parameter must be a negative value to move the viewport to the left.
  • dyPage
    [in] The number of pixels to move the viewport y-coordinate (up or down). This parameter must be a negative value to move the viewport up.

Return Value

This function returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, in addition to the following:

  • S_OK
    The method completed successfully.

Remarks

You can use this function or the TPSetViewPosition function for panning. This function produces animation effects, which last for 0.3 to 0.5 seconds. The animation speed (frame rate) depends on your hardware and the graphics-rendering plug-in (such as OpenGL or DirectDraw) that you choose.

Requirements

Header TileProxy.h
Library tileengine.dll
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

TPSetViewPosition
TPGetViewPosition
TPWindowToPage
TPGetViewVisBounds
TPGetViewDocSize

Other Resources

Internet Explorer Embedded Tiling Engine Functions
Customizing the Browser User Interface