views:

217

answers:

1

Trying to upgrade an MFC app to use the new MFC feature pack, we are loosing the messages from a context menu. The menu appears and can be clicked, but the message seems not to be handled anywhere. We overrode OnCmdMsg() in lots of places but to no avail, the context menu's command message are not caught.

Is there a way, tool, or approach to trace messages?
Any other ideas how to solve this problem?

+2  A: 

Try SPY++

> ...can be found on the Programs or All Programs menu in Windows. Click Microsoft Visual Studio 9.0, and then click Visual Studio Tools.

Provides a graphical view of the processes, threads, windows, and window messages of a system. For more information, click Help in the tool.

I explain more in this answer about Spy++ for 2005.

JeffH