🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #482

Re: CppWebBrowser OnNewWindow2 event handling

#482
From: Mark Jacobs
Date: Mon, 08 Jan 2007 14:06
27 lines
2163 bytes
Hans Galema wrote:
> <quote>
> Another approach I've tried is capturing DWebBrowserEvent::NewWindow
> instead. Since that handler, unlike NewWindow2, gets the target, as
> well as the URL, I could just do cancel the request and create the
> window myself. But that breaks the window relations within the
> scripting engine, so it was a less than satisfactory solution.
> </quote>
>
> Now NewWindow is not public. But maybe you can make a class that
> makes it public.
>
> By the way: You are not generating the html yourself I suppose.

Again, many thanks. Some good ideas here. But it does seem as if M$ have 
sabotaged a really useful pop-up blocker event, and replaced it with something 
much harder to work with!

I have dabbled with the header file shdocvw_ocx.h but I cannot get the 
OnNewWindow event from TCppWebBrowser_V1 into the TCppWebBrowser class 
definition. Any ideas?
-- 

-
Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk 
Technical Details
Message-ID: <45a24fb0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45a16d9f$1@newsgroups.borland.com> <45a176de$1@newsgroups.borland.com> <45a178db@newsgroups.borland.com> <45a23770$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,3b7f79a773c6cfb8
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mark Jacobs" <http://www.jacobsm.com/mjmsg?Borland%20Newsgroup>
Newsgroups: borland.public.cppbuilder.internet.web
References: <45a16d9f$1@newsgroups.borland.com> <45a176de$1@newsgroups.borland.com> <45a178db@newsgroups.borland.com> <45a23770$1@newsgroups.borland.com>
Subject: Re: CppWebBrowser OnNewWindow2 event handling
Date: Mon, 8 Jan 2007 14:06:49 -0000
Lines: 28
Organization: DK Computing
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="iso-8859-1";
 reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
NNTP-Posting-Host: 81.144.157.8
Message-ID: <45a24fb0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1168265136 81.144.157.8 (8 Jan 2007 06:05:36 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail