IWebBrowser2 from IE HWND
-
Hi all, I need to get the IWebBrowser2 interface from the HWND for an IE control. Currently I am using Active Accessibility to get the IHTMLDocument2 interface from an HWND. Normally you can get the IWebBrowser2 interface from IHTMLDocument2 by querying IHTMLDocument2 for the IServiceProvider interface, then calling QueryService to get the IWebBrowser2 interface. This does not appear to work going through active accessibility. I believe this problem may have something to do with the set of objects that are marshalled with active accessibility. If anyone has been able to successfully go from an HWND for an IE control to the IWebBrowser2 interface, I would really appreciate your help and solution. Thank you
Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!