Article View: borland.public.cppbuilder.nativeapi
Article #6399Re: SetForegroundWindow and modal dialogs
From: Evariste HORNECKER
Date: Fri, 13 May 2005 12:30
Date: Fri, 13 May 2005 12:30
28 lines
1897 bytes
1897 bytes
I use the BringWindowToTop function which work only on popup windows. In your case, each popup window must have a parent window (the main window of the application) Hope it helps "nicolasr" <nicolasrNOSPAMATSIGNgmx.net> a οΏ½crit dans le message de news: 4283df81@newsgroups.borland.com... > Hi, > > I have a global hook DLL installed that on certain events > should set my application to the front. This works well when > my application does not currently show a modal dialog > or message box. When my application shows a modal > dialog the application is brought to the top of the z-order > but the dialog is behind it. Since the dialog is modal the > user can't work with my app anymore and worse he > doesn't know why because he does not know there's a > modal dialog hidden. > > Does anyone know how to fix this? My hook DLL uses > SetForegroundWindow to bring my app to the top. > > (my app is VCL based) > > thanks, > Nick >
Technical Details
Message-ID:
<42849ddb@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4283df81@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ea02ac7bb1794a21 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: "Evariste HORNECKER" <evariste.horneckerSTOPTHESPAM@neosys.fr> Newsgroups: borland.public.cppbuilder.nativeapi References: <4283df81@newsgroups.borland.com> Subject: Re: SetForegroundWindow and modal dialogs Date: Fri, 13 May 2005 14:30:13 +0200 Lines: 30 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; Response NNTP-Posting-Host: 80.13.67.189 Message-ID: <42849ddb@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1115987419 80.13.67.189 (13 May 2005 05:30:19 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail