将Windows消息ID转换为文本 [英] Convert Windows Message IDs to Text

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

问题描述

Windows中是否存在一个隐藏/未记录的API调用,该调用会将消息ID(例如WM_COMMAND)转换为文本?

Is there a hidden/undocumented API call within Windows that will convert a message ID (e.g. WM_COMMAND) into text?

我已经看到有关如何使用宏和switch语句实现这一点的建议(这是一个笑话!),但是肯定有一种运行时的方法可以做到这一点吗?

I have seen suggestions on how to achieve this using macros and switch statements (which is a bit of a joke!) but surely there is a run-time means of doing this?

在尝试调试的情况下,我无法使用Spy ++,并且我不想创建庞大的命令ID表,也没有文本-即使是通过宏也是如此.必须有一种方法可以做到这一点-Spy ++肯定在其源代码中没有巨大的消息ID查找表?

I can't use Spy++ for the scenario I'm trying to debug and I don't want to create a huge table of command IDs and there text - even if it is via a macro. There must be a way to do this - surely Spy++ doesn't have a huge message ID lookup table inside its source???

欢呼 闪亮

推荐答案

Spy ++在其源代码中有一个巨大的消息ID查找表.

Spy++ has a huge message ID lookup table inside its source.

这篇关于将Windows消息ID转换为文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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