Browser Class

Use the Browser class to access the Pocket Internet Explorer Browser API interfaces.

Interfaces Provided by Class

Interface Description
_DPIEWebBrowserEvents2 Provides a connection point so that an application can intercept events fired by a method.
IBrowser Provides methods for navigating to a URL, rendering an HTML page, and retrieving and changing characteristics of the user interface.
IBrowser2 Provides methods for ClearType® support, fit-to-screen capability, changing page layouts, playing sounds, executing scripts, rendering images, and text zoom.
IBrowser3 Provides methods for ActiveX® controls, context menus, focus rectangles, integral paging, text selection, and window sizing.

Remarks

A browser object is created by calling the Windows CE CoCreateInstance function with a CLSID of CLSID_Browser.

    hr = CoCreateInstance(CLSID_Browser, NULL, CLSCTX_INPROC_SERVER, 
                          IID_IUnknown, (void**)&pUnknown);
    if (FAILED (hr)) exit(0);  // Replace with specific error handling.
    hr = pUnknown->QueryInterface(IID_IBrowser, (void**)&pBrowser); 
    if (FAILED (hr)) exit(0);  // Replace with specific error handling.

Requirements

Pocket PC: Windows Mobile 2003 and later
OS Versions: Windows CE 4.0 and later
Header: webvw.h
Library: webvw.lib

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.