检测发送到挂起窗口的消息 [英] Detect messages sent to suspended window

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

问题描述



有没有办法拦截发送到暂停窗口的Windows消息?暂停是指SuspendThread()暂停了创建窗口的线程.我已经尝试过WH_CALLWNDPROC和WH_GETMESSAGE钩子,但是没有运气.似乎所有消息都发送到了挂起的线程消息队列,但是在调用ResumeThread()之后就可以看到效果.因此,我认为有一种获取这些消息的方法.我要做的是在检测到专用于它的任何输入后恢复一个暂停的窗口(为此,我需要暂停的窗口的句柄).有任何建议吗?

问候
Daniel

Hi,

Is there a way to intercept windows messages sent to a suspended window? By suspended i mean that a thread that created the window is suspended by SuspendThread(). I've already tried WH_CALLWNDPROC and WH_GETMESSAGE hooks with no luck. It seems that all messages are sent to the suspended thread message queue however the effect can be seen just after calling ResumeThread(). So i assume that there is a way to get to those messages. What i want to do is to resume a suspended window after detecting any input dedicated for it (and for this i need the handle of suspended window). Any suggestions?

Regards
Daniel

推荐答案

我要做的是检测到后恢复挂起的窗口任何专用于它的输入
What i want to do is to resume a suspended window after detecting any input dedicated for it


据我所知,这已经是Windows的默认行为:

http://msdn.microsoft.com/en-us/library/ms644956(VS.85).aspx


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

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