Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Comments
E.F. Nijboer 19-Oct-10 13:55pm    
Could it be you should use WM_NCMOUSELEAVE. Also, TrackMouseEvent could be quite interesting I think.
http://msdn.microsoft.com/en-us/library/ms646265%28v=VS.85%29.aspx
cal_sof 19-Oct-10 17:22pm    
unless Im mistaken WM_NCMOUSELEAVE is just a mouse leave even on the non client area. Catching that doesn't stop the activeX receiving a WM_MOUSELEAVE event though. Looking into that TrackMouseEvent, but doesn't seem to be quite what I'm after. I literally just need to filter one or two messages.

1 solution

 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900