How to detect selected Tab in IE7?
- From: peter.isberg@xxxxxxxxx
- Date: 6 Nov 2006 11:03:10 -0800
Hi,
I'm having major problems with figuring out how to detect which Tab
that is selected in IE7.
I know how to enumrate the IE tabs, but the main problem is that each
tab (i.e. WebBrowser2 object), in a specific IE "frame", returns the
same HWND (using pWebBrowser->get_HWND())!
So, (as far as I can tell) a tabbed WebBrowser2 object doesn't have a
unique HWND, but reports the one of the IE "frame", no matter if the
tab is selected or not.
This makes it impossible using z-order to figure out which tab that is
currently selected.
I've tried comparing titles, urls, get_focus(), enumerating child
windows etc but nothing works on all web pages.
Anyone has any ideas about this?
Is there perhaps a simple property in some new interface that I've
missed?
Thanks!
.
- Follow-Ups:
- Re: How to detect selected Tab in IE7?
- From: Igor Tandetnik
- Re: How to detect selected Tab in IE7?
- Prev by Date: Re: COMException when unregistering NavigateComplete in IE7
- Next by Date: Re: How to detect selected Tab in IE7?
- Previous by thread: Re: COMException when unregistering NavigateComplete in IE7
- Next by thread: Re: How to detect selected Tab in IE7?
- Index(es):
Relevant Pages
|
|