Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Spy++ view messages posted/sent to a control, or from it?

Spy++ view messages posted/sent to a control, or from it?

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    awah
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • A awah

      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

      J Offline
      J Offline
      JudyL_MD
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups