Re: Why don't modal windows flash?

From: Rodrigo.net (eu_at_eu.com.br)
Date: 01/21/04


Date: Wed, 21 Jan 2004 18:39:43 -0200

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);
>
>



Relevant Pages

  • Re: create deactivated form
    ... > One simple way would be to immediately set focus back after the second ... > So I'm looking for a way to immediately create a window that doesn't have ... > protected override CreateParams CreateParams ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: GIF image on a form
    ... Protected Overrides ReadOnly Property CreateParams() As CreateParams ... Override the OnPaintBackground event, but don't put anything into it: ... Import the GIF into your resources (Project Properties, Resources, ... This will basically give you a transparent surface. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: GIF image on a form
    ... Protected Overrides ReadOnly Property CreateParams() As CreateParams ... Override the OnPaintBackground event, but don't put anything into it: ... Import the GIF into your resources (Project Properties, Resources, ... This will basically give you a transparent surface. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: WIN32 Window Classes with WIndows Forms
    ... Create a class derived from Control, override the CreateParams ... property and use it to return the window class to use. ... Mattias Sjögren [MVP] mattias @ mvps.org ...
    (microsoft.public.dotnet.framework.windowsforms)

Loading