Wayne Smith

Wayne Smith

  • NA
  • 3
  • 9.7k

Intercepting Windows Messages sent to an ActiveX control

Oct 19 2010 1:10 PM
Hi all,

[Background]I have a standalone c# application that renders flash and pdf's via activeX controls. But they're actually rendered into a 3d directx environment., and events are then injected into the form via windows messaging system (WM_MOUSE events). However, I need to filter out some of the random windows messages which are being generated by using this method.

[The Question]Is there a way to capture Windows Message events that are being passed to an activeX control? I'm overriding the forms WndProc to capture the events being sent to the form, but WM_MOUSELEAVE for example, still fires in the activex controls window. Its these I'm trying to prevent.



Cheers in advance for any help.

Answers (3)