Share via


Messages View

Each window has an associated message stream. A Messages view window displays this message stream. The window handle, message code, and message are shown. You can create a Messages view for a thread or process as well. This allows you to view messages sent to all windows owned by a specific process or thread, which is particularly useful for capturing window initialization messages.

A typical Messages view window appears below. Note that the first column contains the window handle, and the second column contains a message code (explained in Message Codes). Decoded message parameters and return values are on the right.

Spy++ Messages View

Spy++ Messages View

Procedures

To open a Messages view for a window, process, or thread

  1. Move the focus to a Windows View, Processes View, or Threads View window.

  2. Find the node for the item whose messages you want to examine, and select it.

  3. From the Spy menu, choose Log Messages.

    The Message Options Dialog Box opens.

  4. Select the options for the message you want to display.

  5. Press OK to begin logging messages.

    A Messages view window opens, and a Messages menu is added to the Spy++ toolbar. Depending upon the options selected, messages begin streaming into the active Messages view window.

  6. When you have enough messages, choose Stop Logging from the Messages menu.

In This Section