experimental new GUI setup

Corinna Vinschen vinschen@cygnus.com
Thu Jul 6 15:08:00 GMT 2000


DJ Delorie wrote:
> 
> >     SystemParametersInfo(SPI_GETFOREGROUNDLOCKTIMEOUT, 0, 0, 0);
> 
> Does this disable it for the whole system, or just the current
> application?

It's a parameter changing system behaviour. You can use
the

DWORD timeout;
SystemParametersInfo(SPI_GETFOREGROUNDLOCKTIMEOUT, 0, &timeout, 0);

call to get the old param and reset it to the old value
when your setup has finished. Note that only the current
foreground application can change that parameter.

You can avoid that by starting the other application/thread
which opens the error box explicitly as the foreground
application (Create a window, call SetForegroundWindow()).
You may do this, because you're started from the previous
foreground application. Note that _any_ user intervention
(eg. clicking on a window of some other application) prevents
your error box from being in the foreground.

That's W2K, the M$ crew seems to be very happy about that new
feature, but... don't ask me!

Corinna


More information about the Cygwin-developers mailing list