Article ID: 196340 - Last Review: May 12, 2004 - Revision: 3.0 How to get the WebBrowser object model of an HTML frame
This article was previously published under Q196340
(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Scott
Roberts, Microsoft Corporation.
SUMMARY
This article details the standard technique WebBrowser control hosts can
use to access the WebBrowser object model of frame windows in an HTML page
inside the control. This object model provides extra functionality that is
not exposed for the frame window through the HTML object model.
MORE INFORMATION
The following code demonstrates how to access the WebBrowser Object Model
of frames in an HTML page to refresh the contents of each frame.
The most important piece of the code uses the IOleContainer::EnumObjects method of the HTML Document object to enumerate embeddings on the page. Each of these embeddings represents a control on the page. By querying each control object for IWebBrowser2, this code can determine whether the control is a sub-frame. And IWebBrowser2 represents the WebBrowser Object Model; if QueryInterface succeeds for this interface, the result is a reference to the WebBrowser Object Model. | Other Resources Other Support Sites
CommunityArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email

Back to the top