How do I get the title text displayed for each tab open in IE9 or older ?
Steps -
- EnumWindows() to get all 'shell' windows
- For each shell window found in step1, filter out with window class as 'Internet Explorer_Server' using EnumChildWindows() to get 'HWND' of each tab
- Now we when call GetWindowText(hWnd) or use SendMessage(WM_GETTEXT) it does not return anything
- Did come across a forum, that says HWND found above is not the real HWND since we are dealing with Internet Explorer which is a 'control' and not a normal window. This is unconfirmed though
How do I get the title of each tab?
There is alternate way to load HTML document for each tab and get the title text but want to avoid it since it is expensive operation.
Thank You