I am building a WPF application in C# and I want to display thumbnails of open IE tabs in a listbox. I\'m essentially trying to duplicate the DWM functionality in Windows 7.
The solution I went with was using EnumWindows
and GetWindowText
from the Win32 API. I enumerate through Internet Explorer windows using shdocvw.dll
and pass the tab's caption to a method that parses the results of GetWindowText
to find the hwnd of the window with that caption.
This works for all IE windows, not just tabs.