Getting Mouse Events for BHO

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

[462 byte] By [k6386] at [2008-2-22]
# 1

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.

SharathUdupa at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Extension Development...