Using Remote Spy++ To Check Window Messages in Windows Mobile Applications
Windows programming in native C++ is generally considered far more complex than in managed code. Programming for Windows Mobile devices is very similar with Windows programming. Sometimes we need to figure out which Window message is sent so we can write the corresponding event handling code. However, we can't use Spy++ to do so because we are either debugging our application in the device emulator which is a virtual machine or an actual device.
Visual Studio has a tool called Remote Spy++ (with an array of other remote tools), which provides us the functionality to work with device emulators and/or actual connected devices. So if you don't know this guy yet and want to use Spy++ for your device application, you can go ahead and try. It's pretty cool and may save you a lot of work to watch for the right messages.