🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CppWebBrowser OnNewWindow2 event handling

#476
From: Mark Jacobs
Date: Sun, 07 Jan 2007 22:49
17 lines
1802 bytes
"Hans Galema" <notused@notused.nl> wrote in message 
news:45a176de$1@newsgroups.borland.com...
> You do not need to know the URL as all you have to provide is a pointer
> to an instance of TCppWebBrowser that should display the new page.
> So you could instantiate a new form (containing a TCppWebBrowser) here
>    TForm1 *Form1 = new TForm1(0,false,0,0);
>    *ppDisp = Form1->CppWebBrowser1->Application;

Thanks, Hans. However, I am not letting the pop-up launch normally (for 
several reasons) in another IE instance. I want to control the app launching 
the URL. That is why I need the URL. I have seen a solution that invovles 
letting the instance start, but grab the URL and cancel the navigation 
inside the OnBeforeNavigate event, but I don't like that solution. Is there 
any way of getting the intended URL from the LPDISPATCH parameter?
-- 
Mark Jacobs
www.jacobsm.com 
Technical Details
Message-ID: <45a178db@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!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>

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" <mark@jacobsm.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <45a16d9f$1@newsgroups.borland.com> <45a176de$1@newsgroups.borland.com>
Subject: Re: CppWebBrowser OnNewWindow2 event handling
Date: Sun, 7 Jan 2007 22:49:41 -0000
Lines: 19
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
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 195.137.123.182
Message-ID: <45a178db@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1168210139 195.137.123.182 (7 Jan 2007 14:48:59 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail