liangfengmark
V2EX  ›  .NET

Bho OnNewWindow3 的实现问题

  •  
  •   liangfengmark · Feb 21, 2017 · 2948 views
    This topic created in 3443 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   ·   1101 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 18:10 · PVG 02:10 · LAX 11:10 · JFK 14:10
    ♥ Do have faith in what you're doing.