Searching for a Window
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
Arrange your windows so that Spy++, an active Windows view, and the subject window are visible.
From the Search menu, choose Find Window.
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.
Choose Up or Down for the initial direction of the search.
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.