Convert Windows Message IDs to Text

前端 未结 3 797
被撕碎了的回忆
被撕碎了的回忆 2020-12-07 01:48

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

I have seen suggestions on how to achieve this usi

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-07 02:02

    In visual studio, you can add uMsg,wm in command window or immediate window to get the string representation of the message ID given by uMsg.

    source : http://www.codeguru.com/cpp/v-s/debug/article.php/c1267/Convert-message-ID-to-a-string.htm (comments section)

    PS: This is same link as mentioned in jack's answer. A user had commented there on the link. This technique has helped me very much in debugging Windows messages (no modification and recompilation of code is required), and therefore merits a separate answer.

提交回复
热议问题