有了IWebBrowser2*,如何得到其Internet Explorer_Server窗口句柄?
专制的网站 2012-02-03 04:02:38 网上搜了一下,基本以下两种方式:
http://topic.csdn.net/t/20060607/15/4806765.html
http://hi.baidu.com/edward_sim/blog/item/ef813c89e3762db90f244419.html(
http://msdn.microsoft.com/en-us/library/aa752126(v=vs.85).aspx)
发现上面两种方式的代码得到的值是一样的(这里我称为 hwndA),但并不是 Internet Explorer_Server的窗口句柄 ......
用SPY++检测到 Internet Explorer_Server的窗口句柄(这里我称为 hwndB)
然后就发现,hwndB 的parent 的 parent 是 hwndA ...
请问 :除了枚举子窗口的方式外 ,如何获得相应 Internet Explorer_Server窗口句柄??