Search code examples
windowsmessage

Convert Windows Message IDs to Text


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 using macros and switch statements (which is a bit of a joke!) but surely there is a run-time means of doing this?

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

Cheers Sparky


Solution

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