liangfengmark
V2EX  ›  .NET

Bho OnNewWindow3 的实现问题

  •  
  •   liangfengmark · Feb 21, 2017 · 2918 views
    This topic created in 3431 days ago, the information mentioned may be changed or developed.

    Bho中写了NewWindow3的实现,但是我在页面中执行window.open的时候不执行请问是什么情况

    webBrowser = site != null ? (SHDocVw.WebBrowser)site : null; webBrowser.NewWindow3 += new DWebBrowserEvents2_NewWindow3EventHandler(this.OnNewWindow3);

    private void OnNewWindow3(ref object ppDisp, ref bool Cancel, int dwFlags, string bstrUrlContext, string bstrUrl) { MessageBox.Show("OnNewWindow3"); }

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   907 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 20:55 · PVG 04:55 · LAX 13:55 · JFK 16:55
    ♥ Do have faith in what you're doing.