Article View: borland.public.delphi.nativeapi
Article #73Re: Why don't modal windows flash?
From: Rodrigo.net
Date: Wed, 21 Jan 2004 20:39
Date: Wed, 21 Jan 2004 20:39
23 lines
1613 bytes
1613 bytes
But... If the CreateParams in Form1 was already overrided, and the Params.WndParent was changed to GetDesktopWindow, it won't work. Unfortunately I have this problem. "Rodrigo.net" <rodrigol@bigfoot.com> escreveu na mensagem news:400e6d03@newsgroups.borland.com... > Ok, here is a workaround: > > Override CreateParams like the following: > > procedure TForm2.CreateParams(var Params: TCreateParams); > begin > inherited CreateParams(Params); > Params.WndParent := GetActiveWindow; > end; > > It works fine. > > For MessageBoxes use MessageBox API: > > MessageBox(GetActiveWindow, 'something', 'something', MB_ICONINFORMATION); > >
Technical Details
Message-ID:
<400ee22c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<400d8626@newsgroups.borland.com> <400e61ef@newsgroups.borland.com> <400e6899@newsgroups.borland.com> <400e6d03@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f94dd,e2ceacf656009080 X-Google-Attributes: gidf94dd,public X-Google-ArrivalTime: 2004-01-21 12:40:29 PST From: "Rodrigo.net" <eu@eu.com.br> Newsgroups: borland.public.delphi.nativeapi References: <400d8626@newsgroups.borland.com> <400e61ef@newsgroups.borland.com> <400e6899@newsgroups.borland.com> <400e6d03@newsgroups.borland.com> Subject: Re: Why don't modal windows flash? Date: Wed, 21 Jan 2004 18:39:43 -0200 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 200.215.36.199 Message-ID: <400ee22c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074717228 200.215.36.199 (21 Jan 2004 12:33:48 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail