All windows in the system are displayed in the two tree views in the main Window Detective window. These trees are a hierarchy of parent and child windows. The first tree lists all top-level windows, that is, all children of the desktop window. The second tree lists windows by their owner process. The children of these windows are nodes of their parent item, the same for both trees.
The desktop window tree |
The process window tree |
Each tree view has a number of columns that display window properties such as handle (HWND), text and dimensions.
Right-clicking on an item will pop up a context menu with actions for that window. These are:
| View Properties | Opens a property window on the selected window |
| Set Properties | Opens a dialog to set the properties of the window |
| Messages | Opens a window which logs all messages sent to the selected window. |
| Expand All | Recusively expands all child items of the selected item. |
| Edit Window Styles | Opens the "set properties" dialog on the window styles tab. |
| Flash | Flashes a border around the window. The border style can be set in the preferences. |
| Show | Shows the window. This does nothing if the window is already visible. |
| Hide | Hides the window. This does nothing if the window is hidden. |
| Close | Closes the window. The owner application may do other processing, such as prompting the user for confirmation, prior to destroying the window. |