Important: The information in this document is obsolete and should not be used for new development.
Initializing the Window Manager
Before using any other other Window Manager routines, you must initialize the Window Manager by calling theInitWindows
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 namedWMgrCPort
on Macintosh computers equipped with Color QuickDraw andWMgrPort
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 procedureGetWMgrPort
orGetCWMgrPort
. 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 ofscreenBits.bounds
as a special case and allows drawing on all parts of the desktop.
Subtopics
- InitWindows