Making either either a webbrowser object or shockwave object react to a mouse click.

  • Thread starter Thread starter UJ
  • Start date Start date
U

UJ

I have both a webbrowser object and a shockwave object on a window's form. I
want to make it so that if a person clicks on either of them, something
happens. But they both look like they don't have an onclick event. How do I
add that. I was thinking of putting an object (like a label) in front of
them the same size and transparent and trapping the onclick event for that.

Any thoughts?

TIA - Jeff.
 
Jeff,

Capturing events from ActiveX controls is a little tricky. Unless someone
has a better idea, I would suggest using Spy++ to explore the HWND hierarchy
of the controls and then using a NativeWindow class to attach to the
appropriate handle. This will allow you to listen for whatever events you
are looking for. This approach is not trivial, so hopefully someone will
have a better suggestion.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top