code to walk down all a program's windows
-
Does anyone know of an application or source code that can be used to walk down all the tree of all windows in a program? I'd like to write some test code that runs at my program's exit that visits all the windows in the program and prints information about those windows -- for example: 1. print the resource id of the window 2. print the window text (or small part there of) 3. if the window is a dialog, frame, etc, visit the sub-windows thereof and repeat the above I'm interested in doing some automated testing understand that the task of filtering windows from the list may be really high. Thanks, Lowell
-
Does anyone know of an application or source code that can be used to walk down all the tree of all windows in a program? I'd like to write some test code that runs at my program's exit that visits all the windows in the program and prints information about those windows -- for example: 1. print the resource id of the window 2. print the window text (or small part there of) 3. if the window is a dialog, frame, etc, visit the sub-windows thereof and repeat the above I'm interested in doing some automated testing understand that the task of filtering windows from the list may be really high. Thanks, Lowell
-
Does anyone know of an application or source code that can be used to walk down all the tree of all windows in a program? I'd like to write some test code that runs at my program's exit that visits all the windows in the program and prints information about those windows -- for example: 1. print the resource id of the window 2. print the window text (or small part there of) 3. if the window is a dialog, frame, etc, visit the sub-windows thereof and repeat the above I'm interested in doing some automated testing understand that the task of filtering windows from the list may be really high. Thanks, Lowell
You can use of EnumWindows for all top-level windows when you have handle to window you can use of other APIs.
-
Does anyone know of an application or source code that can be used to walk down all the tree of all windows in a program? I'd like to write some test code that runs at my program's exit that visits all the windows in the program and prints information about those windows -- for example: 1. print the resource id of the window 2. print the window text (or small part there of) 3. if the window is a dialog, frame, etc, visit the sub-windows thereof and repeat the above I'm interested in doing some automated testing understand that the task of filtering windows from the list may be really high. Thanks, Lowell
Thanks for the hints! I was hoping to find some utility program to help me, but I guess I'll just have to roll up my sleeves and get to work. thanks! Lowell
-
Thanks for the hints! I was hoping to find some utility program to help me, but I guess I'll just have to roll up my sleeves and get to work. thanks! Lowell
I like Winspector[^]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [SoonR Inc -- PC Power delivered to your phone](http://www.soonr.com)