Getting Mouse Events for BHO  
Author Message
k6386





PostPosted: Internet Explorer Extension Development, Getting Mouse Events for BHO Top

Hi,

I'm making a BHO for IE written as a COM dll in C++. I was wondering if there was a way to trap mouse events like mouseover a link, mouseout of a link etc. The only way I can think of now is to embed a javascript code in the document, but that's pretty messy and I am not totally comfortable with it.

Also, is there an interface that would let me embed a page within the current document open in IE

Thank you for any help.

K



Internet Explorer Development5  
 
 
Sharath Udupa





PostPosted: Internet Explorer Extension Development, Getting Mouse Events for BHO Top

You need to hook into HTMLElementEvents2 dispinterface of the link elements. Check out http://msdn.microsoft.com/library/default.asp url=/workshop/browser/mshtml/tutorials/sink.asp

As for embedding a page into the existing document, I am not quite sure what you are looking for. If you are planning on adding an new frame into the document, you could use IHTMLDocument2::createElement to create the iframe inside the existing document and change the src of this iframe to the page you want to load.