将Explorer_WindowStateChanged更改为IE 7或IE 8中已标识的选项卡更改事件. [英] Explorer_WindowStateChanged to identified tab change event in IE 7 or IE 8.
问题描述
我正在使用Explorer_WindowStateChanged来标识IE 7或IE 8中的选项卡更改事件.
我的问题是,当我在新选项卡中打开任何链接时(通过右键单击链接,然后单击在新选项卡中打开),那么somtimes Explorer_WindowStateChanged事件不会触发,并且我无法检测到新的选项卡已打开. br/>
当我在选项卡之间切换时,Explorer_WindowStateChanged事件工作正常.问题仅在我打开新标签页且新打开的标签页不活动时(意思是活动标签页是我打开链接的地方)
实际上,我保持打开标签的数量.因此有时8个标签页处于打开状态,而我的计数显示7个标签页处于打开状态.
请帮助我,如何确保每当打开一个新选项卡时,然后在setsite()方法之后,都必须触发Explorer_WindowStateChanged事件.
请帮助
I am using Explorer_WindowStateChanged to identified tab change event in IE 7 or IE 8.
My problem is, When i open any link in new tab (By right click on link and click on open in new tab), then somtimes Explorer_WindowStateChanged event does not fire and i am not able to detect that a new tab has been opened.
Explorer_WindowStateChanged event is working fine when i am switching between tab. The problem is only when i am opening new tab and the new opened tab is not active (Means active tab is that where i opened link)
Actually i am keeping the count of opened tab. So sometimes 8 tabs are open and my count show that 7 tab are open.
Please help me that how can i ensure that whenever a new tab is opening then after setsite() method, Explorer_WindowStateChanged event must fire.
Please Help
推荐答案
我认为,当打开新标签页或IE实例时,您需要使用SHDocVw.ShellWindows.WindowRegistered事件获取通知.
I think, you need to use SHDocVw.ShellWindows.WindowRegistered event to get notification when a new tab or IE instance is opened.
这篇关于将Explorer_WindowStateChanged更改为IE 7或IE 8中已标识的选项卡更改事件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!