🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Win 2000/XP question

#16612
From: user
Date: Fri, 09 May 2003 12:15
20 lines
1786 bytes
Juan Diego Garc�s wrote:
> When I use the BringToFront method of the TApplication Class, the only thing
> can I see, is the icon of the application that is blinking in the taskbar,
> but the application in not brought to the front.
> 
> This method in Win NT works fine. What have I do to get the same behaivor of
> this method in Win 2000/XP?
> 
> Thanks
> 
> Juan Diego Garc�s
> 
> 

I think you'll find that it doesn't work on Window 98/Me, either. The 
operating system was deliberately changed to prevent any process from 
forcing itself into the foreground, presumably for reasons of security. 
There is a way to get the old behavior, but it requires modifying the 
system registry. The Microsoft platform SDK docs entry for 
SetForegroundWindow() has the details.
Technical Details
Message-ID: <3EBB9BF0.5000904@domain.invalid>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ebb8936@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,228670448afecb0
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-09 05:24:54 PST
Message-ID: <3EBB9BF0.5000904@domain.invalid>
Date: Fri, 09 May 2003 08:15:44 -0400
From:  user@domain.invalid
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Win 2000/XP question
References: <3ebb8936@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 151.201.32.85
X-Trace: newsgroups.borland.com 1052482566 151.201.32.85 (9 May 2003 05:16:06 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail