如何接收postmessage()发布的事件? [英] How to receive the event posted by postmessage()?

查看:377
本文介绍了如何接收postmessage()发布的事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何接收postmessage()函数发布的事件?在其他控制台应用程序中,要检查事件是否已在VC ++中成功从其他应用程序发布?

How to receive the event posted by postmessage() function? In other console application to check whether the event is posted from the other app successfully in VC++?

推荐答案

您需要在代码中添加Windows消息处理函数以接收该消息,以便您可以对其进行处理.

如果您只想检查发送的消息(以调试代码),则可以使用Spy ++.
You need to add a Windows Message handler function to your code to receive the message so that you can process it.

If all you want to is to check for the message being sent (to debug the code) then you could use Spy++.


这篇关于如何接收postmessage()发布的事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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