7.2 Selecting a Window: The Window Menu

Use the Window menu to select the window you want Spy to monitor. The Window menu contains the following commands:

Command Description

Window Specifies the window that Spy is to monitor. When you choose the Window command, Spy displays the Spy Window dialog box. This dialog box displays information about the window in which the cursor is located. As you move the cursor from window to window, the following information is updated:
Item Description

Window Handle of the window.
Class Window class.
Module Program that created the window.
Parent Handle of the parent window and the name of the program that created the parent window.
Rect Upper-right and lower-left coordinates of the window and the window size in screen coordinates.
Style Style bits of the window in which the cursor is located, the principal style of the window, and an identifier if the window is a child window. The principal style can be WS_POPUP, WS_ICONIC, WS_OVERLAPPED, or WS_CHILD.

All Windows Specifies that Spy is to display messages received by all windows.
Clear Window Clears the Spy window.