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 / Maintaining the Update Region


EndUpdate

Use the EndUpdate procedure to finish updating a window.

PROCEDURE EndUpdate (theWindow: WindowPtr);
theWindow
A pointer to the window's window record.
DESCRIPTION
The EndUpdate procedure restores the normal visible region of a window's graphics port. When you receive an update event for a window, you call BeginUpdate, redraw the update region, and then call EndUpdate. Each call to BeginUpdate must be balanced by a subsequent call to EndUpdate.

SEE ALSO
See Figure 4-21 on page 4-49 for an illustration of how BeginUpdate and EndUpdate affect the visible region and update region. See Listing 4-10 on page 4-50 for an example that updates a window.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996