WebBrowser Customization
This tutorial shows you several ways to customize the "out of the box" behavior and appearance of the WebBrowser Control . You'll see how to use the advanced hosting interfaces IDocHostUIHandler , IDocHostUIHandler2 , IDocHostShowUI , and ICustomDoc . This article will also look at other customization techniques such as download control through handling DISPID_AMBIENT_DLCONTROL in the host's IDispatch implementation, and using IHostDialogHelper . This article is divided into the following sections: Prerequisites and Requirements Introduction WebBrowser Customization Architecture IDocHostUIHandler IDocHostUIHandler2 Controlling Navigation IDocHostShowUI Controlling Download and Execution IHostDialogHelper Controlling New Windows Information Bar Conclusion Related Topics Prerequisites and Requirements In order to understand and use this tutorial, you need: A good understanding of C++ and the Component Object Model (COM). Familiarity with the Active Template Library (AT