TPGetViewPosition (Windows Embedded CE 6.0)

1/6/2010

This function gets the offset of the viewport, which is set by TPSetViewPosition.

Syntax

HRESULT TPGetViewPosition(
    HANDLE hTileProxy,
    float* px,
    float* py);

Parameters

  • hTileProxy
    [in] Handle to TileProxy.
  • px
    [out] Pointer to the x-coordinate of the upper-left corner of the viewport, multiplied by the current zoom factor. For example, if the coordinate is 100 and the zoom factor is 1.5, this parameter is 150.
  • py
    [out] Pointer to the y-coordinate of the upper-left corner of the viewport, multiplied by the current zoom factor. For example, if the coordinate is 100 and the zoom factor is 1.5, this parameter is 150.

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 with zooming or panning. Panning changes the position of the viewport relative to the Web page; zooming changes the size of the viewport relative to the Web page.

Requirements

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

See Also

Reference

TPSetViewPosition
TPChangePos
TPWindowToPage
TPGetViewVisBounds
TPGetViewDocSize

Other Resources

Internet Explorer Embedded Tiling Engine Functions
Customizing the Browser User Interface