Finding correct window handle
Hello,
I am trying to work out the correct way to print out a list of child windows (and child of child windows etc). So far I have done a few tests on the Windows Notepad program by using:
Code:
#include <windows.h>
.....
hwnd1 = FindWindow(NULL, "Untitled - Notepad");
hwnd2 = GetWindow(hwnd1, GW_CHILD);
which gets the main text box window.
Could someone help me work out how to do a similar thing for more complex programs which have multiple child windows or sub-child windows.
Thanks,
Chris