Log in

View Full Version : Setting breakpoint on WM_COMMAND


dandy
March 18th, 2004, 21:42
Is it possible to set a breakpoint on WM_COMMAND (and simliar messages)? thanx and sorry if this is a dumb question but i'm still a newb.

Ricardo Narvaja
March 20th, 2004, 05:32
yes is possible go to VIEW WINDOWS and right click in the windows you want and MESSAGE BREAKPOINT ... and chose the type of message you want.

In a common conditional BPX you can put in TranslateMessage or pther apis that work with messages, you can put a condition

MSG==WM_COMMAND

or a message you want

MSG==WM_BUTTONDOWN

etc

Ricardo