[英]How to prevent a new window from opening in hosted Internet Explorer
I'm hosting an Internet Explorer instance (the Web Control) in an CAxWindow ATL class. 我在CAxWindow ATL类中托管Internet Explorer实例(Web控件)。 How do I prevent that a website could open a new window from the hosted IE?
如何防止网站可以从托管的IE打开新窗口? I'm already setting an implementation of IDocHostUIHandlerDispatch to disable the context menu.
我已经在设置IDocHostUIHandlerDispatch的实现以禁用上下文菜单。
WebBrowser ActiveX控件上有一个事件,用于显示您需要监听和取消的新窗口(NewWindow,NewWindow2,NewWindow3)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.