How do I display open IE tabs as DWM thumbnails?

前端 未结 3 779
面向向阳花
面向向阳花 2021-02-20 06:46

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.

3条回答
  •  囚心锁ツ
    2021-02-20 07:04

    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.

提交回复
热议问题