Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Multiple Events Firing

0 views
Skip to first unread message

tma...@gmail.com

unread,
Jul 5, 2006, 3:01:56 AM7/5/06
to
I have an Webbrowser Control embedded in my C++ Application and I
advised Event-Sinks for all HTML-Elements on the page
(HTMLElementEvents2). The Problem is that for some Elements my Handler
(Invoke) gets the OnClick-Events multiple times. I know that this is
because the Event bubbles up throught all the parent elements.

Is there any way to modify the Handler in any way that i only catch the
specific event once.
I cannot disable Bubbling with
ptrEvtObj->put_cancelBubble(VARIANT_TRUE); because there could be
javascripts in the page who handle this Event for a Parent and I need
this functionality as well.

I know this sound hard, but if anybody has an idea I would be really
thankful.

Regards,
Thomas Max

0 new messages