Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This code sample is named MiniPIE. It demonstrates how to reuse the Internet Explorer Mobile web browser in a mobile application.
Feature Area
Relevant APIs
IWebBrowser2Interface
DWebBrowserEvents2Events
Usage
-
Navigate to the solution file (*.sln), and double-click it. By default, the solution files are copied to the following folders:
C:\Program Files\Windows Mobile 6.5.3 DTK\Samples\Common\CPP\ATL\MiniPIE
Microsoft Visual Studio launches and loads the solution.
-
Build the solution (Ctrl+Shift+B).
-
Deploy the solution (F5).
-
Navigate using the Open URL...menu item, or by using the Address Bar, if deploying to a device running Windows Mobile Professional or Windows Mobile Classic.
-
Use the Exitsoftkey to quit.
-
Use the Back, Forward, Refresh, Home,and Stopmenu items as you would in Internet Explorer Mobile.
Source File Listing
- MainWindow.h, MainWindow.cpp
-
Defines the main application window.
- GetURLDialog.h, GetURLDialog.cpp
-
Defines a dialog box that allows the User to enter a URL. This is not really needed to host the web browser control; however, it is implemented here to allow the User to navigate on Windows Mobile Standard, where the IWebBrowser2::get_AddressBarproperty is not implemented.
- MiniPIE.cpp
-
Implementation of WinMain.
- MiniPIE.rc
-
Resources used by this application.
- resource.h
-
Header file that defines resource IDs. Used by MiniPIE.rc.
- Macros.h
-
Utility macros used for error-checking, etc.
- StdAfx.h, StdAfx.cpp
-
These files are used to build a Precompiled Header (PCH) file named MiniPIE.pch, and a precompiled type file named StdAfx.obj.
- MiniPIE.vcproj
-
Main project file for VC++ projects generated using Application Wizards.
Development Environments
SDK:Windows Mobile Professional SDK and Windows Mobile Standard SDK
Development Environment:Visual Studio 2005 or 2008.
ActiveSync:Version 4.5.