Reputation: 6470
I have an application that handles the the CM_DIALOGKEY message on it's main form.
procedure CMDialogKey(var Message: TCMDialogKey); message CM_DIALOGKEY;
This worked up until some point recently, but I can't figure out at what point something was changed, and more importantly what. If I create a blank application, put in the message handler above then the message is handled and I can do things on certain keystrokes. Somewhere along the line some code must have been added that handles a message and doesn't propogate that message, but for the life of me I can't figure out what. Any ideas on how to go about debugging this? Breakpoints are obviously out of the question, unless someone has an idea of a breakpoint somewhere specific.
Upvotes: 0
Views: 667
Reputation: 613461
Any ideas on how to go about debugging this?
Here's how I would go about debugging this:
CMDialogKey
.Message.Msg=CM_DIALOGKEY
.At this point you should have isolated the behaviour change and be in a position to investigate a solution.
Upvotes: 1