What's a good way to debug Windows message content and destination?

流过昼夜 提交于 2020-01-02 15:29:07

问题


I'm working on an application that simulates a Windows mouse based on other behavior. One example is that pressing the + or - keys on the keyboard sends the WM_MOUSEWHEEL message to a target window with an appropriate delta. The problem is that in some situations I'm having a hard time replicating the messages that i think windows is sending to the target application. Are there any ways to record windows messages sent to a specific window (hopefully with a filter for which messages I want to catch) and then review that data later?


回答1:


If you have Visual Studio, that comes with Spy++, which does exactly this job.

An alternative is Winspector - Ultimate Windows Message Spy



来源:https://stackoverflow.com/questions/1456010/whats-a-good-way-to-debug-windows-message-content-and-destination

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!