Article View: borland.public.cppbuilder.nativeapi
Article #13251Re: BHO question
From: Martin C
Date: Wed, 22 Oct 2003 11:56
Date: Wed, 22 Oct 2003 11:56
54 lines
4015 bytes
4015 bytes
Remy, "Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message news:3f95e02e$1@newsgroups.borland.com... > I do not think you listened to what I tried to explain to you, so let me try > it make it ever more clear for you. Did you, or did you not, use my > original sample code regarding DISPID_NEWWINDOW2 in your own project? Yes > or no? > If yes, then you will never get a new window *unless* you hold down either > the CTRL or SHIFT key, as that is specifically how the example code was > written to work. If you did not hold down a key, then you would not get a > new window. You said yourself that the problem was solved once you removed > my code, which suggests that you were, in fact, using the original sample > code as-is, including the code that checks the keyboard for CTRL or SHIFT > being held down. Yes remy I used it and when I realized what you were doing I removed your DISPID_NEWWINDOW2 code, although the problem of (Open in new window) command still exist. > > 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 > > If you are blocking 100% of the windows, then of course it won't do > anything. That is not correct...even if you are blocking 100% of pop-up screens (and what I mean here by pop-up screens is screens that pop-up without the user permission) there is a code (unfortunatly it is in VC) that can be written to see if the newly created windows was created based on user selection (in other words the user clicked on a link, picture...etc.) then the new window will be created without blocking it, please review (http://www.codeproject.com/atl/PopupBlocker2.asp) > > 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. > > Again, if you are blocking 100% of the windows, then that is expected > behavior as well. Again please review (http://www.codeproject.com/atl/PopupBlocker2.asp) > > Gambit > Finally Remy, I really appreciate you helping me from day. BR
Technical Details
Message-ID:
<3f967065@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:
<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> <3f95da49@newsgroups.borland.com> <3f95e02e$1@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-22 05:10:31 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> <3f95da49@newsgroups.borland.com> <3f95e02e$1@newsgroups.borland.com> Subject: Re: BHO question Date: Wed, 22 Oct 2003 03:56:19 -0800 Lines: 56 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: 62.135.27.219 Message-ID: <3f967065@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1066823781 62.135.27.219 (22 Oct 2003 04:56:21 -0700) 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