Article View: borland.public.cppbuilder.nativeapi
Article #6397SetForegroundWindow and modal dialogs
From: nicolasr
Date: Thu, 12 May 2005 22:58
Date: Thu, 12 May 2005 22:58
19 lines
1535 bytes
1535 bytes
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:
<4283df81@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ea02ac7bb1794a21,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: SetForegroundWindow and modal dialogs Date: Fri, 13 May 2005 00:58:09 +0200 Lines: 21 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; Original NNTP-Posting-Host: 84.174.159.143 Message-ID: <4283df81@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1115938689 84.174.159.143 (12 May 2005 15:58:09 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail