【问题标题】:How to prevent a new window from opening in hosted Internet Explorer如何防止在托管 Internet Explorer 中打开新窗口
【发布时间】:2010-09-22 13:57:24
【问题描述】:

我在 CAxWindow ATL 类中托管一个 Internet Explorer 实例(Web 控件)。如何防止网站从托管的 IE 中打开新窗口?我已经设置了 IDocHostUIHandlerDispatch 的实现来禁用上下文菜单。

【问题讨论】:

    标签: c++ internet-explorer atl hosted


    【解决方案1】:

    WebBrowser ActiveX 控件上有一个用于显示新窗口(NewWindow、NewWindow2、NewWindow3)的事件,您需要监听并取消该事件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-05-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多