好久没来, 有一问题要向高手请教如何在自己的Browser程序中截获html window.showModalDialog()? 我想要在自己的Dialog中显示html而不是用IE提供的那个对话框msdn的那几篇关于IHostDialogHelper的文章, 那里没有提到如何实现自己的IHostDialogHelper, 只是说了如何通过IHostDialogHelper调用IE内部的对话框我已经尝试过让ControlSite实现IHostDialogHelper, 并且在IServiceProvider.QueryService提供这个接口, 但是不管用另外, 不要告诉我用API hook...
However, you may "set" the "showModalDialog" property of the window object to a custom function in order to override the default behavior after the Document Object Modal (DOM) is available. The DOM is available between the DocumentComplete event and the BeforeNavigate2 event of the top level browser object