Spy++ view messages posted/sent to a control, or from it?
-
Spy++ view messages posted/sent to a control, or from it? i noticed that there are "S", "P" codes when the messages are logged. Now what i wan to know is these messages are messages originating from that control, OR they are messages being received by that control. if they are messages sent away, how do i see messages being sent to that control? if they are messages sent to, how do i see messages being sent away from that control if they are both, then how do i differentiate then? how to know which is which how do i know the destination of the messages being sent? please help a newb hanhao
-
Spy++ view messages posted/sent to a control, or from it? i noticed that there are "S", "P" codes when the messages are logged. Now what i wan to know is these messages are messages originating from that control, OR they are messages being received by that control. if they are messages sent away, how do i see messages being sent to that control? if they are messages sent to, how do i see messages being sent away from that control if they are both, then how do i differentiate then? how to know which is which how do i know the destination of the messages being sent? please help a newb hanhao
HEre's an example: <00001> 0001058C S WM_NCHITTEST xPos:510 yPos:756 <00002> 0001058C R WM_NCHITTEST nHittest:HTCLIENT <00003> 0001058C S WM_SETCURSOR hwnd:0001058C nHittest:HTCLIENT wMouseMsg:WM_MOUSEMOVE <00004> 00090564 S WM_SETCURSOR hwnd:0001058C nHittest:HTCLIENT wMouseMsg:WM_MOUSEMOVE <00005> 00090564 R WM_SETCURSOR fHaltProcessing:False <00006> 0001058C R WM_SETCURSOR fHaltProcessing:False <00007> 0001058C P WM_MOUSEMOVE fwKeys:0000 xPos:252 yPos:377 On each line: message # receiving window handle S/R/P - S: message sent via SendMessage (i.e. sender will wait until window has processed message), R: message completion (will always be paired with a S), P: message sent via PostMessage. Note in my example there is a nested pair of S/R - 3 and 6 are a start/stop and 4,5 are a nested sent message decode message type decoded message parameters There is no way to tell who sent a P message nor the first of multiple S messages. When you see nested S messages, it is a good bet that the outer S message sent the message to the inner S window. Spy++ does not track messages created by a window. It only tracks messages received by windows. Judy