Developing in C++ with the HTML Viewer Control
[转载自MSDN:http://msdn.microsoft.com/en-us/library/ms838684.aspx]Microsoft Internet Explorer for the Pocket PC lets you browse thewireless Web and view offline Web files. However the HTML ViewerControl gives these abilities and more to any application.
Applies to:
Microsoft Windows Powered Pocket PC 2000
Microsoft eMbedded Visual C++ version 3.0
VOImage classes (optional) available for free from Virtual Office Systems, Inc
GIF, JPG, and other types of files
Languages Supported
English
Creating the HTML Viewer Control
Beforeyou can create a control you need a project with a main window. Thefollowing steps walk you through creating both your project and theHTML Viewer Control.
<ol>From the Microsoft eMbedded Visual C++ 3.0 menu, select File and then select New.
Select Projects and then, from the list of available project types, select WCE Pocket PC Application.
In the Project Name edit control box, enter HTMLControl and click OK to start the project wizard.
Select A Typical 'Hello World!' Application and then click Finish.
In the confirmation dialog box, click OK to generate the source files. You now have a buildable project.
From the Target Platform drop-down list box, select Win32 (WCE x86em) Debug, as shown in Figure 1. (This can also be done by selecting Build and then Set Active Configuration from the menu and selecting the desired target platform.)http://i.msdn.microsoft.com/ms838684.t_htmlviewer1%28en-us,MSDN.10%29.gif
Figure 1: Select the target platform.
Addthe following code (the lines of code you need to add are in red, theother lines are there for reference only) near the top of the HTMLCONTROL.CPP file:<div class="CodeSnippetTitleBar"><div class="CopyCodeButton">http://i.msdn.microsoft.com/Global/Images/clear.gif Copy Code
页:
[1]