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.
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);
精彩评论