天 天若无痕 Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-24 #1 var ppDisp: IDispatch接口如何使用? 谢谢。
P pihome Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-24 #2 procedure TForm1.WebBrowser1NewWindow2(Sender: TObject; var ppDisp: IDispatch; var Cancel: WordBool); begin ppdisp:=WebBrowser2.DefaultDispatch; end;
procedure TForm1.WebBrowser1NewWindow2(Sender: TObject; var ppDisp: IDispatch; var Cancel: WordBool); begin ppdisp:=WebBrowser2.DefaultDispatch; end;
天 天若无痕 Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-24 #3 楼上的,如何从OnNewWindow2这个事件中获取新开窗口的地址?
P pihome Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-24 #4 好象没办法,没有传递新窗口的URL,仔细看一下,会发现 ppDisp=Nil,查MSDN如下: ppDisp Object expression that, optionally, receives a new, hidden WebBrowser or InternetExplorer object with no URL loaded.
好象没办法,没有传递新窗口的URL,仔细看一下,会发现 ppDisp=Nil,查MSDN如下: ppDisp Object expression that, optionally, receives a new, hidden WebBrowser or InternetExplorer object with no URL loaded.