Important: The information in this document is obsolete and should not be used for new development.
PaintOne
The Window Manager uses thePaintOneprocedure to redraw the invalid, exposed portions of one window on the desktop.
PROCEDURE PaintOne (window: WindowPeek; clobberedRgn: RgnHandle);
window- A pointer to the window's complete window record.
clobberedRgn- A handle to the region that has become invalid.
DESCRIPTION
ThePaintOneprocedure "paints" the invalid portion of the specified window and
all windows above it. It draws as much of the window frame as is inclobberedRgnand, if some content region is exposed, erases the exposed area (paints it with the background pattern) and adds it to the window's update region. If the value of thewindowparameter isNIL, the window is the desktop, andPaintOnepaints it with
the desktop pattern.ASSEMBLY-LANGUAGE INFORMATION
The global variablesSaveUpdateandPaintWhiteare flags used byPaintOne. Normally both flags are set. ClearingSaveUpdatepreventsclobberedRgnfrom being added to the window's update region. ClearingPaintWhitepreventsclobberedRgnfrom being erased before being added to the update region (this is useful, for example, if the background pattern of the window isn't the background pattern of the desktop). The Window Manager sets both flags periodically, so you should clear the appropriate flags each time you need them to be clear.