Yeah I cam across this API Call, and it helped fix a bug ina VB app. I had
to maintain a few months back. It works pretty well.
Jeremy Coulter
Application Developer
Application Development Centre
Compaq Computer New Zealand Ltd.
Phone: 64 3 371 5724
Fax: 64 3 371 5724
Mobile: 64 0212533214
E-mail: [EMAIL PROTECTED]
Personal Email: [EMAIL PROTECTED]
-----Original Message-----
From: Patrick Dunford [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 21, 2000 4:03 PM
To: Multiple recipients of list delphi
Subject: [DUG]: INFO: SetForegroundWindow changed in Win98, 2000
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
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz