Partager via


TPSetViewPosition (Windows Embedded CE 6.0)

1/6/2010

This function moves the viewport directly to the given position.

Syntax

HRESULT TPSetViewPosition(
    HANDLE hTileProxy,
    float x,
    float y);

Parameters

  • hTileProxy
    [in] Handle to the TileProxy object.
  • x
    [in] X-coordinate of the upper-left corner of the viewport, relative to the HTML window.
  • y
    [in] Y-coordinate of the upper-left corner of the viewport, relative to the HTML window.

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 TPChangePos function for panning. This function does not produce animation effects.

Requirements

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

See Also

Reference

TPChangePos
TPWindowToPage
TPGetViewPosition
TPGetViewVisBounds
TPGetViewDocSize

Other Resources

Internet Explorer Embedded Tiling Engine Functions
Customizing the Browser User Interface