开发者

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜