This is something I came across in MSDN earlier this week.
SetForegroundWindow is an API call used to activate a particular
application. If you know the window handle then you pass it to
SetForegroundWindow and that application's window comes to the foreground.
In Windows 98 and 2000 there is a new capability for an application to lock
itself into the foreground using a new API call. Windows can also ignore SFW
calls if certain things are happening, for example this gets rid of Windows'
annoying habit of the Start Menu disappearing because another application
has popped up a window it wants you to look at.
The implementation is slightly different in Windows 2000 than Windows 98.
See
http://support.microsoft.com/support/kb/articles/Q227/0/43.ASP
http://msdn.microsoft.com/library/psdk/winui/windows_5juf.htm
http://msdn.microsoft.com/library/psdk/winui/windows_5fw7.htm
============================================
Patrick Dunford, Christchurch, NZ
EnzedRailWeb Sites
http://patrick.dunford.com/enzedrailweb/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz