liangfengmark
V2EX  ›  .NET

Bho OnNewWindow3 的实现问题

  •  
  •   liangfengmark · Feb 21, 2017 · 2836 views
    This topic created in 3394 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   ·   1073 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:46 · PVG 06:46 · LAX 15:46 · JFK 18:46
    ♥ Do have faith in what you're doing.