Article View: borland.public.cppbuilder.nativeapi
Article #11471Re: Remy please help...BHO question...again
From: Remy Lebeau (TeamB)
Date: Fri, 13 Feb 2004 01:29
Date: Fri, 13 Feb 2004 01:29
22 lines
1955 bytes
1955 bytes
"Martin C" <martinc@aol.com> wrote in message news:402c193c@newsgroups.borland.com... > Anyway I will try implementing the same idea under the > DISPID_BEFORENAVIGATE2 event. Actually, DISPID_BEFORENAVIGATE2 is triggered after DISPID_NEWWINDOW2, so you can't really cancel the popup at all since you have no way of knowing the the URL ahead of time. Basically, you would have to make DISPID_NEWWINDOW2 create a temporary web browser instance on a hidden window of its own and allow the navigation normally, and then catch DISPID_BEFORENAVIGATE2 from the second browser instance and cancel the navigation from there. Since the second window is still hidden, you can simply cancel the navigation and close the window. If the navigation is to be allowed, you simply diplay the hidden window instead. I can't give you actual code for it yet, as I haven't implemented it myself yet. I'll have to show you that later. Gambit
Technical Details
Message-ID:
<402c26b0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<402c0c73$1@newsgroups.borland.com> <402c1587$1@newsgroups.borland.com> <402c193c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,d7cd5f398672172c X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-12 17:39:42 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <402c0c73$1@newsgroups.borland.com> <402c1587$1@newsgroups.borland.com> <402c193c@newsgroups.borland.com> Subject: Re: Remy please help...BHO question...again Date: Thu, 12 Feb 2004 17:29:30 -0800 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <402c26b0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1076635312 67.22.138.253 (12 Feb 2004 17:21:52 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail