Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Searching for a Window

Visual Studio 6.0

Home Page (Spy++) | Overview | How Do I ... Topics

You can search for a specific window by using its handle, caption, class, or a combination of its caption and class as search criteria. You can also specify the initial direction of the search. The fields in the dialog box will show the attributes of the selected window in the window tree.

To search for a window

  1. Arrange your windows so that Spy++, an active Windows view, and the subject window are visible.

  2. From the Search menu, choose Find Window.

  3. Drag the Finder Tool to the subject window that you want. As you drag the tool, window details appear in the dialog box.

    – or –

    If you know the handle of the window you want (for example, from the debugger), type it in the Handle box.

    – or –

    If you know the caption and/or class of the window you want, type them in the Caption and Class box and delete the Handle box.

  4. Choose Up or Down for the initial direction of the search.

  5. Click OK.

If a matching window is found, it is highlighted in the Windows view.

Tip   To reduce screen clutter, select the Hide Spy option in the Find Window dialog box. This removes the main Spy++ window and leaves the Find Window dialog box visible on top of your other applications. The Spy++ main window will be restored when you choose the OK or Cancel button, or when you clear the Hide Spy option.

© 2015 Microsoft