Enabling Floating Windows

If you wish to enable system support for floating windows, you must initialize the Window Manager by calling the function InitFloatingWindows before using any other Window Manager functions. Your application calls the InitFloatingWindows function--instead of the InitWindows function--to initialize the Window Manager and enable automatic front-to-back display ordering of all your application's windows. When your application calls InitFloatingWindows , the system automatically sorts each of your application's windows into one of three window display layers: modal, floating, and document. As with InitWindows , before calling InitFloatingWindows , you must initialize QuickDraw and the Font Manager by calling the InitGraf and InitFonts functions, respectively.

IMPORTANT

The InitFloatingWindows function is supported under Mac OS 8.6 and later.

See Responding to Suspend and Resume Events for an example of how you can use the Mac OS 8.5 Window Manager to hide and show floating windows when your application receives suspend and resume events.


� 1999 Apple Computer, Inc. – (Last Updated 18 March 99)