Re: How to intercept the tab closing event (IE7) in a BHO?



gzching@xxxxxxxxx a écrit :
I have a browser helper object by which I use to intercept the closing
of a IE window and tab window inside it. I can handle IEFrame window
through SC_CLOSE message. But I don't know how to handle the tab
closing. Is there any message/event that I can intercept?

Thanks
Yuqing Zhu

Hi,

On IE7, there is one BHO instance per tab.
When a tab is closing, your BHO "SetSite" method will be called with a null pointer, and your BHO will be requested to destroy (your destroy method of your class will be called).

Hope this helps.

--
Best Regards / Cordialement

====================
Jean-Fabrice Rabaute
CORE SERVICES :: Software/Web development & Consulting services

http://www.debugbar.com : The most advanced WEB development tool for Internet Explorer
http://www.core-services.fr - {Enjoy the future today}
.



Relevant Pages

  • Re: Welcome Screen
    ... I do see the Users tab on the Task Manager, ... The Task Manager has a lot more uses than just seeing the Users tab. ... In the Automatically Log On window, type the password in the Password ... On the Applications tab, click the program that you want to end, and then ...
    (microsoft.public.windowsxp.newusers)
  • Re: - Yahoo ups the ante, hijacks browsers through Adobe Reader 7
    ... One has to be a bit careful when deleting *everything* in the "Downloaded Objects" file. ... General tab. ... In the System Configuration Utility window, ... Remove all suspicious items from the registry ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: WMI wouldnt start. My fix.
    ... >it) that WMI was dependent on it, ... >On the launch permissions, where you have ... the Default Com Security tab is now called ... remember to click OK on the relevant window) ...
    (microsoft.public.windowsxp.wmi)
  • Re: Browsers browsers
    ... :> then opens in another window to see the line with the error. ... :> Address Bar Location Bar ... :> There is a New Tab button which is handy once, ...
    (microsoft.public.scripting.jscript)
  • Re: Homepage
    ... IE is short for Internet Explorer so IE7 is the ... this will open a 'dialog window' that will tell you what version of IE you have ... each one will show up as a 'tab' of its own. ... just get to the website you want to use as your 'home page' first. ...
    (rec.crafts.textiles.quilting)