Share via


TPChangeZoom (Windows Embedded CE 6.0)

1/6/2010

This function zooms a rectangular area of the HTML page to fit the TileHost window, and displays animation.

Syntax

HRESULT TPChangeZoom(
    HANDLE hTileProxy,
    POINT ptHitPoint, 
    RECT* pZoomRect, 
    BOOL bAllowVerticalZoom);

Parameters

  • hTileProxy
    [in] Handle of TileProxy.
  • ptHitPoint
    [in] This parameter is not used. A point to center the rectangle on, if the rectangle does not fill the screen.
  • pZoomRect
    [in] Pointer to a RECT structure that specifies the bounds of the rectangle to fit the TileHost window. The coordinates are in pixels and relative to the upper-left corner of the HTML window.
  • bAllowVerticalZoom
    [in] Value that allows the tiling engine to zoom to either the height or width of the rectangle. If set to true, the tiling engine zooms to the height or width, whichever is smaller. Set to false to always fit the window horizontally.

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.

Requirements

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

See Also

Reference

TPGetViewScale
TPSetView
TPChangeZoomScale

Other Resources

Internet Explorer Embedded Tiling Engine Functions
Customizing the Browser User Interface