🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ShellExecute starting html in new IE window

#8304
From: Oren Halvani
Date: Wed, 10 Nov 2004 18:43
28 lines
1808 bytes
"nicolasr" <nicolasrNOSPAMATSIGNgmx.net> schrieb im
 Newsbeitrag news:41916258@newsgroups.borland.com...

>
> The problem is,  that if the user already had an
> open IE window ShellExecute always loads my
> html file into this window discarding the previous
> content, what probably is undesired.


hi Nick,

i use this..and it always opens a new window...try it.

/**********************************************/
void __fastcall TfrmAbout::SpeedButton1Click(TObject *Sender)
{
   HINSTANCE ReturnCode =
ShellExecute(Handle,NULL,"http://www.Halvani.de",NULL,NULL,SW_NORMAL);
   if(( int)ReturnCode <= 32)
   {
      ShellExecute(Handle,NULL,"http://www.Halvani.de",NULL,NULL,SW_NORMAL);
   }
}
/**********************************************/


Oren
Technical Details
Message-ID: <41926181@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41916258@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7d295e29917bc6e6
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Oren Halvani" <Spam@Me-Please.com>
From: "Oren Halvani" <Spam@Me-Please.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41916258@newsgroups.borland.com>
Subject: Re: ShellExecute starting html in new IE window
Date: Wed, 10 Nov 2004 19:43:29 +0100
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 217.234.101.26
Message-ID: <41926181@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100112257 217.234.101.26 (10 Nov 2004 10:44:17 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail