how to obtain messages that have been posted/sent into a control?
-
how to obtain messages that have been posted/sent into a control? SPY++ only shows messages that the control has sent out, not messages that it receives help file from spy++ [QUOTE] P The message was posted to the queue with the PostMessage function. No information is available concerning the ultimate disposition of the message. S The message was sent with the SendMessage function. This means that the sender doesn’t regain control until the receiver processes and returns the message. The receiver can, therefore, pass a return value back to the sender. s The message was sent, but security prevents access to the return value. R Each ‘S’ line has a corresponding ‘R’ (return) line that lists the message return value. Sometimes message calls are nested, which means that one message handler sends another message. [/QUOTE]
-
how to obtain messages that have been posted/sent into a control? SPY++ only shows messages that the control has sent out, not messages that it receives help file from spy++ [QUOTE] P The message was posted to the queue with the PostMessage function. No information is available concerning the ultimate disposition of the message. S The message was sent with the SendMessage function. This means that the sender doesn’t regain control until the receiver processes and returns the message. The receiver can, therefore, pass a return value back to the sender. s The message was sent, but security prevents access to the return value. R Each ‘S’ line has a corresponding ‘R’ (return) line that lists the message return value. Sometimes message calls are nested, which means that one message handler sends another message. [/QUOTE]
Assuming that you have the source for the control, you can override the DefWindowProc() function and insert whatever message traps you want.
Best wishes, Hans
[CodeProject Forum Guidelines] [How To Ask A Question] [My Articles]
-
how to obtain messages that have been posted/sent into a control? SPY++ only shows messages that the control has sent out, not messages that it receives help file from spy++ [QUOTE] P The message was posted to the queue with the PostMessage function. No information is available concerning the ultimate disposition of the message. S The message was sent with the SendMessage function. This means that the sender doesn’t regain control until the receiver processes and returns the message. The receiver can, therefore, pass a return value back to the sender. s The message was sent, but security prevents access to the return value. R Each ‘S’ line has a corresponding ‘R’ (return) line that lists the message return value. Sometimes message calls are nested, which means that one message handler sends another message. [/QUOTE]
awah wrote:
SPY++ only shows messages that the control has sent out, not messages that it receives
Incorrect. Spy++ shows the messages sent to a control. The 2nd value in the spy display is the window handle of the RECEIVING window. What you can't tell is where the message originated. Judy