Ejemplo n.º 1
0
            //The NewWindow2 event, used on Windows XP SP1 and below
            public void NewWindow2(ref object pDisp, ref bool cancel)
            {
                BrowserExtendedNavigatingEventArgs args = new BrowserExtendedNavigatingEventArgs(pDisp, null, null);

                _Browser.OnStartNewWindow(args);
                cancel = args.Cancel;
                pDisp  = args.AutomationObject;
            }
Ejemplo n.º 2
0
            // NewWindow3 event, used on Windows XP SP2 and higher
            public void NewWindow3(ref object ppDisp, ref bool Cancel, uint dwFlags, string bstrUrlContext, string bstrUrl)
            {
                BrowserExtendedNavigatingEventArgs args = new BrowserExtendedNavigatingEventArgs(ppDisp, new Uri(bstrUrl), null);

                _Browser.OnStartNewWindow(args, (NativeMethods.NWMF)dwFlags);
                Cancel = args.Cancel;
                ppDisp = args.AutomationObject;
            }