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
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.