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

Before using any other other Window Manager routines, you must initialize the Window Manager by calling the InitWindows procedure.

As part of initialization, InitWindows creates the Window Manager port, a graphics port that occupies all of the main screen. The Window Manager port is named WMgrCPort on Macintosh computers equipped with Color QuickDraw and WMgrPort on computers with only QuickDraw.

Ordinarily, your application does not need to know about the Window Manager port.
If necessary, however, you can retrieve a pointer to it by calling the procedure GetWMgrPort or GetCWMgrPort. Your application should not draw directly into
the Window Manager port, except through custom window definition functions.

The Window Manager draws your application's windows into the Window Manager port. The port rectangle of the Window Manager port is the bounding rectangle of the main screen (screenBits.bounds). To accommodate systems with multiple monitors, QuickDraw recognizes a port rectangle of screenBits.bounds as a special case and allows drawing on all parts of the desktop.


Subtopics
InitWindows

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996