Important: The information in this document is obsolete and should not be used for new development.
PaintOne
The Window Manager uses thePaintOne
procedure 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
ThePaintOne
procedure "paints" the invalid portion of the specified window and
all windows above it. It draws as much of the window frame as is inclobberedRgn
and, 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 thewindow
parameter isNIL
, the window is the desktop, andPaintOne
paints it with
the desktop pattern.ASSEMBLY-LANGUAGE INFORMATION
The global variablesSaveUpdate
andPaintWhite
are flags used byPaintOne
. Normally both flags are set. ClearingSaveUpdate
preventsclobberedRgn
from being added to the window's update region. ClearingPaintWhite
preventsclobberedRgn
from 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.