观看Windows消息窗口 [英] Watch a window for Windows Messages

查看:69
本文介绍了观看Windows消息窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个窗户的把手.我想做的就是观察此窗口并检查发送给它的每条消息.与Windows Detective或Spy ++几乎相同.基本上,当收到特定消息时,我想触发一个函数.

预先感谢,

Jib.

Hi all,

I have a handle for a window. What I would like to do is watch this window and check every message that is being sent to it. Much the same way as Windows Detective or Spy++ would. Basically, when a specific message is received I want to fire a function.

Thanks in advance,

Jib.

推荐答案

有关C#的实现,请参见此处:
http://msdn.microsoft.com/en-us/magazine/cc163617.aspx [ ^ ]
See here for a implementation in C#:
http://msdn.microsoft.com/en-us/magazine/cc163617.aspx[^]


这篇关于观看Windows消息窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆