meissnersd
meissnersd

Reputation: 1312

How to convert WinProc message codes to text?

I have defined a winproc message handler like so

WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)

Is there a nice utility function to convert uMsg codes to text? I need it for debugging. I can not seem to find it with google on msdn. I could code it myself but it should exists already...

Thanks.

Upvotes: 2

Views: 344

Answers (1)

Necrolis
Necrolis

Reputation: 26171

Sounds like a job for Spy++ if its mearly debugging you want, however, if you need it at a more code level, then you might need to use CPP defines to create the logging eg:

#define WNDMSG(x) case x: LogWndMessage(#x);

Upvotes: 2

Related Questions