🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13238

Re: BHO question

#13238
From: Remy Lebeau (TeamB)
Date: Tue, 21 Oct 2003 17:48
23 lines
2772 bytes
"Martin C" <martinc@aol.com> wrote in message
news:3f9565e3@newsgroups.borland.com...

> This part when I removed it the problem of IE pop up menu
> command (Open in a new window) was eliminated and now
> it run fine, so the only logic issue here that the code above is the
> one causing this problem, so can you tell me please what I am
> missing here that causes such problem

The code I posted works fine for me.  What you apparently have not realized
yet is what the code is actually doing.  You have to keep in mind that what
I posted earlier was an *example* based on my own project, I did not mean
for you to actually using the code *as-is*.  The OnNewWindow2 event has a
Cancel parameter.  In my code, if neither the Shift nor the Control key are
held down, the new window is blocked by setting the Cancel parameter to
TRUE.  However, in blocking the new window, IE then passes the requested
navigation back to the main window and thus the OnBeforeNavigate2 event is
triggered so in order to block the navigation entirely, that event must set
its own Cancel parameter to TRUE as well, and optionally call Stop/Quit().


Gambit
Technical Details
Message-ID: <3f9570dd@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f84957c@newsgroups.borland.com> <3f84a0b8@newsgroups.borland.com> <3f88b9db@newsgroups.borland.com> <3f88be72$1@newsgroups.borland.com> <3f897b9a@newsgroups.borland.com> <3f89c56f$1@newsgroups.borland.com> <3f8af683@newsgroups.borland.com> <3f8af95a$3@newsgroups.borland.com> <3f8affad@newsgroups.borland.com> <3f8b009f$3@newsgroups.borland.com> <3f8ed9f0$1@newsgroups.borland.com> <3f8edeb3$1@newsgroups.borland.com> <3f93f0e3@newsgroups.borland.com> <3f941ba4$1@newsgroups.borland.com> <3f9472ab@newsgroups.borland.com> <3f94782e$1@newsgroups.borland.com> <3f9487b0@newsgroups.borland.com> <3f94933e$1@newsgroups.borland.com> <3f949421$1@newsgroups.borland.com> <3f9496e6$1@newsgroups.borland.com> <3f9565e3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,15b7dd6889830f4f
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-21 10:56:17 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f84957c@newsgroups.borland.com> <3f84a0b8@newsgroups.borland.com> <3f88b9db@newsgroups.borland.com> <3f88be72$1@newsgroups.borland.com> <3f897b9a@newsgroups.borland.com> <3f89c56f$1@newsgroups.borland.com> <3f8af683@newsgroups.borland.com> <3f8af95a$3@newsgroups.borland.com> <3f8affad@newsgroups.borland.com> <3f8b009f$3@newsgroups.borland.com> <3f8ed9f0$1@newsgroups.borland.com> <3f8edeb3$1@newsgroups.borland.com> <3f93f0e3@newsgroups.borland.com> <3f941ba4$1@newsgroups.borland.com> <3f9472ab@newsgroups.borland.com> <3f94782e$1@newsgroups.borland.com> <3f9487b0@newsgroups.borland.com> <3f94933e$1@newsgroups.borland.com> <3f949421$1@newsgroups.borland.com> <3f9496e6$1@newsgroups.borland.com> <3f9565e3@newsgroups.borland.com>
Subject: Re: BHO question
Date: Tue, 21 Oct 2003 10:48:31 -0700
Lines: 25
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.137.75
Message-ID: <3f9570dd@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066758365 67.22.137.75 (21 Oct 2003 10:46:05 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail