Mouse Event BHO

Posted by shaimagz on Stack Overflow See other posts from Stack Overflow or by shaimagz
Published on 2010-03-09T00:25:12Z Indexed on 2010/03/09 1:21 UTC
Read the original article Hit count: 664

Filed under:
|
|
|
|

I want my BHO to listen to onmousedown event of some element in a certain webpage. I have all the code that find the specific element, and in msdn its says that I need to use the get_onmousedown event. I came up with this code.

 CComQIPtr<IHTMLElement> someElement;
 VARIANT mouse_eve;
 someElement->get_onmousedown(&mouse_eve);

The question is, how do I tell it to run some function when this event occurs?

© Stack Overflow or respective owner

Related posts about bho

Related posts about atl