DWebBrowserEvents2 { [System.Runtime.InteropServices.DispId(250)] void BeforeNavigate2 { _Browser = browser; } //Implement whichever events you wish public void BeforeNavigate2
所以我们对BeforeNavigate2消息映射函数做了处理,让跳转到“http://settingok”的请求终止,并读取用户设置的乘客信息和车次信息。 void CBrowserHost::BeforeNavigate2(IDispatch *pDisp, VARIANT *url, VARIANT *Flags, VARIANT *TargetFrameName
public interface DWebBrowserEvents2 { [System.Runtime.InteropServices.DispId(250)] void BeforeNavigate2 browser) { _Browser = browser; } //Implement whichever events you wish public void BeforeNavigate2
void CBrowserHost::BeforeNavigate2(IDispatch *pDisp, VARIANT *url, VARIANT *Flags, VARIANT *TargetFrameName