Internet Explorer

    Web Development Archives: WebBrowser and MSHTML

    Language:
    English
    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.
    • Note:There are multiple files available for this download.Once you click on the "Download" button, you will be prompted to select the files you need.
      Version:

      ARC

      File Name:

      colbtn.exe

      drillerMFC.exe

      drillerVB.exe

      edannotator.exe

      EditCommands.exe

      EditFeatures.exe

      EditGlyphs.exe

      EditHost.exe

      edmonitor.exe

      htmldlg.exe

      RenderBehave.exe

      walkall.exe

      Date Published:

      9/24/2008

      File Size:

      118 KB

      131 KB

      107 KB

      283 KB

      154 KB

      152 KB

      161 KB

      174 KB

      167 KB

      112 KB

      207 KB

      118 KB

        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.
    • Supported Operating System

      Windows XP Service Pack 2

        These samples were tested on Microsoft Internet Explorer 6 SP1
      • 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.

    Popular downloads

    Loading your results, please wait...

    Free PC updates

    • Security patches
    • Software updates
    • Service packs
    • Hardware drivers

    Microsoft suggests

    Download the latest Internet Explorer browser today.
    Upgrade your Internet Explorer
    Download the latest browser for Windows.
    Free download