How to detect selected Tab in IE7?



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!

.



Relevant Pages

  • Re: ActiveControl again
    ... the frame exit event fires as I recall. ... This time if you tab forward from txt2 then opt1 enter is not fired though ... Private Sub OptionButton1_Enter ... WhichOptionButton ...
    (microsoft.public.excel.programming)
  • Re: How can I format label name as I loop through records?
    ... Getting back to the doubts you expressed earlier about my subform design, ... My intention is to create a database for several hundred rolls of 35mm film ... type, the first usable frame number, the last usable frame number, comments ... I liked the idea of using a tab control with one tab for each ...
    (microsoft.public.access.formscoding)
  • Re: How can I format label name as I loop through records?
    ... > design, let me attempt to clarify why I have used some data dependant ... > 35mm film that I have taken during my life, ... > film type, the first usable frame number, the last usable frame ... I liked the idea of using a tab control with one tab ...
    (microsoft.public.access.formscoding)
  • Re: SSTab -- How to disable/enable an option button from a different tab.
    ... I place a sstab with the deafult three tabs. ... I placed 3 command buttons on Tab 1 ... I Place a frame with three options buttons within it on Tab 2 ... Command2 toggles the display of the Frame ON/OFF ...
    (microsoft.public.vb.controls)
  • Re: Trapping a page in a frame?
    ... You may not be trying to steal content but that is precisely what got frame busting code created to start with. ... I have it set to open all popups in a new tab and thought it did the same with links. ... It defaults the cursor to the top of the post for replies - just like EVERY other newsreader. ...
    (comp.lang.javascript)