Windows消息发送到ActiveX控件. [英] Windows Messages sent to an ActiveX Control.
问题描述
大家好,
[背景] 我有一个独立的c#应用程序,可通过activeX控件呈现Flash和pdf.但是它们实际上是渲染到3d DirectX环境中的,然后通过Windows消息传递系统将事件注入到表单中(WM_MOUSE事件).但是,我需要过滤掉使用此方法生成的一些随机Windows消息.
[问题]有没有办法捕获传递给activeX控件的Windows消息事件?我覆盖了WndProc表单以捕获发送到表单的事件,但是例如WM_MOUSELEAVE仍然在activex控件窗口中触发.这些都是我要防止的.
提前加油打气.
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.
推荐答案
您好,cal_sof,
您需要一些API编程.
看看这些(可能会给你一些想法):
http://msdn.microsoft.com/en-us/library/ms632589(VS .85).aspx [ ^ ]
http://www. netframeworkdev.com/windows-presentation-foundation-wpf/how-to-prevent-getting-focus-from-mouse-click-27053.shtml [
Hi cal_sof,
you need some API programing.
Look at these(may give you some idea):
http://msdn.microsoft.com/en-us/library/ms632589(VS.85).aspx[^]
http://www.netframeworkdev.com/windows-presentation-foundation-wpf/how-to-prevent-getting-focus-from-mouse-click-27053.shtml[^]
I hope it helps.
这篇关于Windows消息发送到ActiveX控件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!