Re: WebBrowser ctrl with IE7



Hey Jaydeep,

Can you share how you added the buttons? We couldn't achieve the same. We
also have buttons to add next to back and forward. However, I am not sure, if
it is a legitimate thing to do, may be dave would have the answer to it.

"Jaydeep" wrote:

Thanks Dave for your quick reply,

We have added two new buttons in IE 7 default back-foreword toolbar.
That toolbar and other windows like address bar and search toolbox are
created only once for browser and its all tabs and all tabs share the same
toolbar.

Now events generated by the buttons that we added we want to foreword to
only active tab, how should I get the active tab or how should I get to know
active tab is changed and foreword the messages to it ?

Each tab has its own thread and webbrowser control so I tried with using
IDocHostUIHandlers - OnDocWindowActivate and OnFrameWindowActivate
methods but it is not working while other methods like ShowContextMenu is
working properly.

Can you please suggest some better way for this?



"Dave Massy [MSFT]" wrote:

Hi Jaydeep,
There are no other events I am aware of and no plans to expose additional
functionality here. It woudl help to understand what you need this for so we
can see if there is a way to get what you need.

Thanks
-Dave

"Jaydeep" <Jaydeep@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D0CBD960-62A4-46AA-9BF3-A90F94DEFC98@xxxxxxxxxxxxxxxx
Is there any standard interface available for getting the tab related
notifications in IE7 like getting Active Tab, or active tab change?

Through DWebBrowserEvents2::NewWindow3 event we can get only following
* NWMF_FORCEWINDOW: User opened a link in a new window.
* NWMF_FORCETAB: User opened a link in a new tab.
* NWMF_INACTIVETAB: An inactive tab tried to open a window.
But not other tab related notifications
is there any other way?




.