🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: BHO question

#13095
From: Remy Lebeau (TeamB)
Date: Sun, 26 Oct 2003 20:47
39 lines
3907 bytes
"Martin C" <martinc@aol.com> wrote in message
news:3f9b0463@newsgroups.borland.com...

> All I am sure off that those popup windows are regular
> browser windows, not messagebox, anyway here is the url
> where I was testing you can see it your self
> http://www.popup-blocker.info/testpage/test2.html   please go
> down to the (Element Event Test) this test generate popup windows
> (regular IE windows) once you pass by your mouse pointer over
> the image (on Enter and On Leave).

If they are, in fact, actual browser windows, then the DISPID_NEWWINDOW2
event for the BHO will be triggering for them as well.  I know it will,
because my own BHO is able to prevent those popup windows just fine via the
DISPID_NEWWINDOW2 event using the same code I posted earlier.  If it is not
working for you, then you are not handling the event correctly.

> Also after you check the url, I though of an Idea to overcome this
> problem, please find below the code I wrote to solve the mouse
> over problem (I really need your opinion on it)..

That code is unnecessary for this issue.  DISPID_NEWWINDOW2 will work fine.

> Another question remy, when you check the url I submited up here,
> you can see that there is a test on IE window page refresh popup, so
> I need to block any popup window generated based on pressing the
> refresh button (or pressing F5), so how I can detect that Refresh
> Button / F5 is pressed on the current IE page...?

You don't need to.  Again, DISPID_NEWWINDOW2 is triggered for each of the
popups generated, and my own BHO was able to prevent all three popups during
the refresh without problem without doing anything extra.  Please go re-read
my original code again and figure out why your code is so different from
mine, because my code works and yours apparently isn't, so you must be
missing a vital step somewhere.


Gambit
Technical Details
Message-ID: <3f9c322a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed.kabelfoon.nl!195.129.110.21.MISMATCH!bnewsfeed00.bru.ops.eu.uu.net!bnewsinpeer01.bru.ops.eu.uu.net!emea.uu.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f84957c@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> <3f95da49@newsgroups.borland.com> <3f95e02e$1@newsgroups.borland.com> <3f967065@newsgroups.borland.com> <3f96c2d7@newsgroups.borland.com> <3f99d769@newsgroups.borland.com> <3f99e7a4$1@newsgroups.borland.com> <3f9b0463@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-26 12:53:52 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f84957c@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> <3f95da49@newsgroups.borland.com> <3f95e02e$1@newsgroups.borland.com> <3f967065@newsgroups.borland.com> <3f96c2d7@newsgroups.borland.com> <3f99d769@newsgroups.borland.com> <3f99e7a4$1@newsgroups.borland.com> <3f9b0463@newsgroups.borland.com>
Subject: Re: BHO question
Date: Sun, 26 Oct 2003 12:47:04 -0800
Lines: 41
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: <3f9c322a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067201066 67.22.137.75 (26 Oct 2003 12:44:26 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed.kabelfoon.nl!195.129.110.21.MISMATCH!bnewsfeed00.bru.ops.eu.uu.net!bnewsinpeer01.bru.ops.eu.uu.net!emea.uu.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail