C#如何遍历IE窗体
当前打开了若干IE窗口(有些最小化了),如何遍历(取得句柄)?
[解决办法]
不知道要做什么.. 帮顶下!
[解决办法]
MSDN "ShellBrowser"
[解决办法]
引用System32中SHDocVw.dll和Shell32.dll
private void Form1_Load(object sender, EventArgs e) { Shell32.ShellClass shell = new Shell32.ShellClass(); SHDocVw.ShellWindows windows = shell.Windows() as SHDocVw.ShellWindows; string[] lines = new string[windows.Count]; for (int i = 0; i < windows.Count; i++) { SHDocVw.ShellBrowserWindow win = windows.Item(i) as SHDocVw.ShellBrowserWindow; lines[i] = win.LocationName; } memoEdit1.Lines = lines; }
[解决办法]
5L可以
[解决办法]
用BHO