*
Microsoft*
Results by Bing
Download Center 
Search Advanced Search

Web Development Archives: WebBrowser and MSHTML

Brief Description
Archived Samples for Internet Explorer
Archived content. No warranty is made as to technical accuracy. Content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

On This Page

Quick Details
Version:ARC
Date Published:9/24/2008
Language:English
Download Size:107 KB - 1.8 MB*
*Download size depends on selected download components.

Overview

This section contains a variety of archived samples to assist IT Professionals and Web Developers. All samples may be downloaded.

Colbtn.exe
The COLBTN example shows a control that accesses and changes the HTML document in which it is contained.

DrillerMFC.exe and DrillerVB.exe
There are two Drill samples, both do the same thing, however one is written using MFC and the other is written using Visual Basic. The Driller (MFC) sample is an MFC based control host, that hosts the WebBrowser Control as part of another application. The buttons and address input are supplied by the hosting application and commands are sent to the WebBrowser control on the form. Entering a URL in the address field on the form will result in the WebBrowser control navigating to that page. Additionally, the Drill samples show how a hosting application can "drill" into the WebBrowser control and investigate the loaded HTML document. In this case the host walks the ALL collection of the document object of the loaded html page using Dynamic HTML and populate a list box with each element encountered.

Edannotator.exe
The Edit Designer Annotator sample implements an IHTMLEditDesigner interface that enables the user to read, add, and modify comments in a document. It demonstrates important features of edit designer implementation.

EditCommands.exe
The MSHTML Editor provides a full complement of commands that enable you to modify a document. The commands to edit a document operate on the current selection. They enable you to perform many font and page customization tasks

EditFeatures.exe
You can activate a number of optional features to enhance the MSHTML Editor's default behavior. The commands used to modify the Editor's behavior can be used from C++. Most of these commands work only when the browser is in design mode. They are turned off when the Editor is deactivated or the WebBrowser navigates to a new page.

EditGlyphs.exe
Editing glyphs are images that represent the tags formatting a Web page. Editing glyphs give users visual clues about the structure of a page, and enable users to do more precise editing than they could without glyphs. The MSHTML Editor enables you to represent most tags with your own custom images. However, some tags can't have glyph images. For instance, a TABLE tag can be assigned an image to show where the table as a whole is anchored in the document, but images cannot be assigned to the tags that format within the table, like TD and TH. Custom glyphs can only be used from C++, and work only when DesignMode is "On."

EditHost.exe
IHTMLEdit Host provides a way to control how elements are resized and moved when the user grabs and drags the handles on a control element. For instance, you could cause an element to resize or move by specific increments (a snap-to-grid feature), limit resizing to a minimum or maximum size, or constrain the area to which an element can be moved. The use of IHTMLEditHost is limited to applications hosting MSHTML or the WebBrowser control. IHTMLEditHost cannot be used with binary behaviors or rendering behaviors.

Edmonitor.exe
An edit designer is a COM component that allows you to customize the MSHTML Editor. The only interface an edit designer must implement is IHTMLEditDesigner, which has four methods that act as callback routines. The MSHTML Editor calls these methods in response to events occurring in the Editor.

Htmldlg.exe
HTML Dialog is a simple example that demonstrates how to use the ShowHTMLDialog function. This example shows how to use the function and pass parameters to and receive parameters from an HTML dialog box. The HTML source also shows how to access the parameters that are passed into the dialog box and set the return parameters from the dialog box using script. The HTML source for the dialog box is contained as a resource in the application itself and is accessed using the res: protocol.

RenderBehave.exe
Rendering behaviors enable you to perform custom drawing on a Web page using the Graphics Device Interface (GDI) or a drawing object such as Microsoft® DirectDraw® or Microsoft® Direct3D®. You might use rendering behaviors to provide a custom background or highlighting for elements, for instance, or to provide guidelines for laying out a page in a what you see is what you get (WYSIWYG) editor.

Walkall.exe
This WALKALL sample demonstrates the use of MSHTML as a UI-less HTML parser.

 Top of page

System Requirements

  • Supported Operating Systems: Windows XP Service Pack 2
These samples were tested on Microsoft Internet Explorer 6 SP1

 Top of page

Instructions

Click the appropriate Download button or buttons on this page. You can then choose to open and run the file immediately or save it to your hard disk.

 Top of page

Files in This Download

The links in this section correspond to separate files available in this download. Download the files most appropriate for you.
File Name:File Size

colbtn.exe

118 KB

drillerMFC.exe

131 KB

drillerVB.exe

107 KB

edannotator.exe

283 KB

EditCommands.exe

154 KB

EditFeatures.exe

152 KB

EditGlyphs.exe

161 KB

EditHost.exe

174 KB

edmonitor.exe

167 KB

htmldlg.exe

112 KB

RenderBehave.exe

207 KB

walkall.exe

118 KB

 Top of page

 Top of page

What Others Are Downloading

Others who downloaded Web Development Archives: WebBrowser and MSHTML also downloaded:
  1. DHTML Behaviors Archive

 Top of page


© 2009 Microsoft Corporation. All rights reserved. Contact Us |Terms of Use |Trademarks |Privacy Statement