Re: getting bho reference from iwebbrowser2



You can send registered windows message to the window returned by IOleWindow
(queried from IWebBrowser2) .

You can subclass the window in your BHO to handle registered messages.

--
Sheng Jiang
Microsoft MVP in VC++
<ryan0x4@xxxxxxxxx> wrote in message
news:1184959257.978134.117170@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,

I have a BHO running under IE, my question is is there any way in c++
to get a pointer/reference to my BHO's class from the IWebBrowser2
interface? So basically, can I create a iwebrowser2 instance via
cocreateinstance and then get run a public method implemented in my
bho?

Thank you
Ryan



.



Relevant Pages

  • [NT] Firewall Bypassing With BHO and MSIE
    ... "Internet Explorer is just like any other Win32-based program with its own ... In short, a BHO ... our BHO opens a new MSIE window via the script ... Explorer 4.0 with Browser Helper Objects ...
    (Securiteam)
  • Re: Receiving windows message after mainframe is destroyed
    ... Thanks Johan for responding. ... I have walked through the closing step by step & my Window is closed - ... I use the Registered Windows Message ... > hiding it anyway. ...
    (microsoft.public.vc.mfc)
  • Re: Open new Internet Explorer window in a new process
    ... open up a new browser window and get a handle to its IWebBrowser2 ... if there is an Internet Explorer instance already ... it opens it in the same process as that running instance. ... then wait a little bit for the new process to create the main window and the internet explorer view. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Can not bring IE6 window to front
    ... legitimate BHO can cause problems. ... >> New program window appears behind all other open windows ... >>> user accounts I set up on this computer. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • other pop-up blocking bhos cancelling my navigation.
    ... from inside my BHO I'm trying to open a link in a new ... I'm doing this via initiating a Navigate2 command with either ... On this new window I'm initiall hiding it, ... Fooling popup blockers. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)