Article View: borland.public.cppbuilder.nativeapi
Article #6409Re: SetForegroundWindow and modal dialogs
From: nicolasr
Date: Sat, 14 May 2005 00:38
Date: Sat, 14 May 2005 00:38
10 lines
1447 bytes
1447 bytes
Hi, I think I have a better solution now. I forgot about the invisible VCL window (ehh actually a window of zero size if I recall correctly??) that represents the application. If I specify this window handle in the call to SetForegroundWindow then my main form and all popups/dialogs are brought to the front in correct relative z-order. thanks again, Nick
Technical Details
Message-ID:
<42854890$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4283df81@newsgroups.borland.com> <42849ddb@newsgroups.borland.com> <42851da5@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ea02ac7bb1794a21 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net> Newsgroups: borland.public.cppbuilder.nativeapi References: <4283df81@newsgroups.borland.com> <42849ddb@newsgroups.borland.com> <42851da5@newsgroups.borland.com> Subject: Re: SetForegroundWindow and modal dialogs Date: Sat, 14 May 2005 02:38:39 +0200 Lines: 12 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 84.174.170.154 Message-ID: <42854890$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1116031120 84.174.170.154 (13 May 2005 17:38:40 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail