Events and Methods for IE Explorer Bar
-
Hello, I've downloaded and used the BandObjs MSDN sample which shows how to create an Explorer Bar. However, what the sample fails to show is how to communicate between the Explorer Bar and Internet Explorer itself. What I need to know how to do is the following: 1. When the user enters a new address or clicks on a Favorite, I need my Explorer Bar to know what the new address is. 2. I would like to also be able to *Set* the address of the Browser (IOW "goto" a new website in the same browser window that my Explorer Bar resides). Thanks much for any articles or help. - Robert Thompson
-
Hello, I've downloaded and used the BandObjs MSDN sample which shows how to create an Explorer Bar. However, what the sample fails to show is how to communicate between the Explorer Bar and Internet Explorer itself. What I need to know how to do is the following: 1. When the user enters a new address or clicks on a Favorite, I need my Explorer Bar to know what the new address is. 2. I would like to also be able to *Set* the address of the Browser (IOW "goto" a new website in the same browser window that my Explorer Bar resides). Thanks much for any articles or help. - Robert Thompson
You do that by setting up an event handler and listen for "document complete" etc events... To set a new URL, you use the IWebBrowser2 interface, or even the DHTML Object model (DOM) it exposes. You get the browser interface passed in the IObjectWithSite::SetSite call. For a sample of an ATL implementation of an IE Desk band, look at my site: http://www.viksoe.dk under "ATL, Projects". regards bjarke