How does one get a IWebBrowser2 object from a hwnd (TabWindowClass)


  • I'm trying to write some code to manipulate and get information from the tabs in IE.  Among other things, I'm interested in finding out from each tab what URL it points to.  I know how to iterate through the windows in IE and find the HWNDs of type TabWindowClass.  What I'd like to know is:

    1) Now that I have a TabWindowClass HWND, what can I do with it?  (I wasn't able to find out much about TabWindowClass on MSDN)

    2) I've read that each tab has its own WebBrowser2 object.  How do I get a WebBrowser2 from a HWND?



    Tuesday, May 19, 2009 10:08 PM


All replies