INFO: Changing the Foreground Window in Windows 98 and Windows 2000

ID: Q227043


The information in this article applies to:

This article discusses a Beta release of a Microsoft product. The information in this article is provided as-is and is subject to change without notice.

No formal product support is available from Microsoft for this Beta product. For information about obtaining support for a Beta release, please see the documentation included with the Beta product files, or check the Web location from which you downloaded the release.

SUMMARY

In Windows 98 and Windows 2000 your application can only take over the foreground under certain conditions. This article contains more specific information about these conditions. Generally speaking, if a user is actively working with another application you are not able to change the foreground window.


MORE INFORMATION

If you design an application for Windows 98 and/or Windows 2000 with the assumption that you can always take over the active window, your application may fail. If your application tries to take over the foreground under restricted conditions, your application flashes in the user's taskbar. Your application can take over the foreground under one of the following conditions:

The following condition is new for Windows 2000:


REFERENCES

For additional information about the Windows API calls that you can use to control the foreground window, please see the Platform SDK Documentation and the following article in the Microsoft Knowledge Base:

Q97925 SetActiveWindow() and SetForegroundWindow() Clarification

Additional query words: SetForegroundWindow CompatGuideChange


Keywords          : kbWinOS2000 kbSysSettings kbGrpUser kbWinOS98 kbCompatVers 
Version           : winnt:
Platform          : winnt 
Issue type        : kbinfo 

Last Reviewed: May 10, 1999