Important: The information in this document is obsolete and should not be used for new development.
InitWindows
The procedureInitWindows
initializes the Window Manager for your application. Before callingInitWindows
, you must initialize QuickDraw and the Font Manager by calling theInitGraf
andInitFonts
procedures, documented in Inside Macintosh: Imaging and Inside Macintosh: Text.
PROCEDURE InitWindows;DESCRIPTION
TheInitWindows
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 variableDeskHook
, 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, setDeskHook
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.