如何在WinApi中使用挂钩创建新窗口或弹出窗口时收到通知? [英] How can I be notified when a new window is created or popup window is arised using hook in WinApi?

查看:86
本文介绍了如何在WinApi中使用挂钩创建新窗口或弹出窗口时收到通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在创建新窗口或使用hook和WinApi出现弹出窗口时收到通知?

How can I be notified when a new window is created or popup window is arised using hook and WinApi?

推荐答案

您可以通过实施CBTHook来实现此目的。但是,这将通知您任何窗口被创建,销毁,移动,最小化,最大化,调整大小,...



读取这些 [ ^ ] ...
You'd do this by implementing the CBTHook. Though, this will notify you of ANY window being created, destroyed, moved, minimizing, maximizing, resize, ...

Read these[^]...


这篇关于如何在WinApi中使用挂钩创建新窗口或弹出窗口时收到通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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