获取给定 Windows 消息标识符的数值

Getting the numeric value of a given Windows message identifier

WinAPI 将其 messages,例如 WM_GETTEXT,与整数,例如 13 相关联。每条消息似乎都有自己的代码。

不幸的是,this list of codes is incomplete. For example, it lacks the code for the message CB_FINDSTRING.

问题:给定一个Windows消息,例如CB_FINDSTRING,如何找到它的数字代码?我试过的资源没有全部,我看了很多。

免费在线网站 https://www.magnumdb.com(免责声明:我写的)是一个工具,可以为您提供您想要的所有值(它从整个 [=29] 中提取了大约 400000 values/name 对=] SDK 和 DDK,还有一些 Visual Studio 头文件),例如:

https://www.magnumdb.com/search?q=CB_FINDSTRING

反之亦然:https://www.magnumdb.com/search?q=332

它将为您提供计算值(您还可以看到输入源)并且对不使用C/C++的人特别有用。