🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: BHO question

#13245
From: Martin C
Date: Wed, 22 Oct 2003 01:15
53 lines
3963 bytes
Remy,

Thank you for replaying, please find below my reply:

From: "Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com>

> The code I posted works fine for me.  What you apparently have not
realized
> yet is what the code is actually doing.

I believe there is a * misunderstanding * here, what I was saying in my
previous message was (" 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 ") all I was trying to say is that the code under
NEWWINDOW was having something missing like for example additional code that
must be written to solve the (Open in new window) problem, this code I
*failed* to know what it is , actually I did search a lot on the net for a
solution/article..anything but my only problem there was most of the code is
usually in VC which I really find hard time understanding it.
Actually I found a very good example on codeguru.com but as I said
unfortunatly it was totally written in VC.

>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*.

I really * appreciate * you providing me with a *sample code* and I know
100% since day one that I am not supposed to use it *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().
>

My bho code now is blocking 100% of pop-up screens, my actual problems is
not in blocking pop-up screens, but :
1- If the user tried to open any link using mouse right click and select
(Open in a new window) the IE will not respond
2- If the user clicked on a picture, link...etc. by left mouse click and
this picture, link...etc was suppose to open a new window, this window will
be killed as if it was a pop up screen.


Finally remy I really appreciate your help and support.

Best Regards
Technical Details
Message-ID: <3f95da49@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!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> <3f9570dd@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 18:39:34 PST
From: "Martin C" <martinc@aol.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> <3f9570dd@newsgroups.borland.com>
Subject: Re: BHO question
Date: Tue, 21 Oct 2003 17:15:52 -0800
Lines: 55
Organization: V Safe
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: 81.10.4.238
Message-ID: <3f95da49@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066785353 81.10.4.238 (21 Oct 2003 18:15:53 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail