Article View: borland.public.cppbuilder.nativeapi
Article #6178Re: How to bring a non VCL Window to the front
From: Danila Vershinin
Date: Tue, 07 Jun 2005 19:22
Date: Tue, 07 Jun 2005 19:22
17 lines
1520 bytes
1520 bytes
"JD" <nospam@nospam.com> wrote in message
news:42a5c9a9$1@newsgroups.borland.com...
>...assumes...
This also assumes that the window was actually found :)
What if you spelt it's name wrong? You better alway check for the return
value of FindWindow.
HWND handle=FindWindow(NULL,"App Name");
if(handle)
{
//blah blah blah...
}
else
{
// :(
}
Technical Details
Message-ID:
<42a5f6c1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!news.wiretrip.org!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!feeder.xsnews.nl!feeder.news-service.com!newsfeed.freenet.de!news.germany.com!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42a5aa95@newsgroups.borland.com> <42a5c8a8$1@newsgroups.borland.com> <42a5c9a9$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,78e53b02905d25e1 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Danila Vershinin" <danprep@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <42a5aa95@newsgroups.borland.com> <42a5c8a8$1@newsgroups.borland.com> <42a5c9a9$1@newsgroups.borland.com> Subject: Re: How to bring a non VCL Window to the front Date: Tue, 7 Jun 2005 23:22:40 +0400 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 62.33.221.8 Message-ID: <42a5f6c1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1118172865 62.33.221.8 (7 Jun 2005 12:34:25 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!news.wiretrip.org!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!feeder.xsnews.nl!feeder.news-service.com!newsfeed.freenet.de!news.germany.com!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail