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