Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Macintosh Toolbox Essentials /
Chapter 4 - Window Manager / Window Manager Reference
Window Manager Routines / Initializing the Window Manager


InitWindows

The procedure InitWindows initializes the Window Manager for your application. Before calling InitWindows, you must initialize QuickDraw and the Font Manager by calling the InitGraf and InitFonts procedures, documented in Inside Macintosh: Imaging and Inside Macintosh: Text.

PROCEDURE InitWindows;
DESCRIPTION
The InitWindows procedure initializes the Window Manager.

ASSEMBLY-LANGUAGE INFORMATION
When the desktop needs to be redrawn any time after initialization, the Window Manager checks the global variable DeskHook, which can be used as a pointer to an application-defined routine for drawing the desktop. This variable is ordinarily set to 0, but not until after system startup. If you're displaying windows in code that is to be executed during startup, set DeskHook to 0. Note that the use of the Window Manager's global variables is not guaranteed to be compatible in system software versions later than System 6.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996