PaintOne
PaintOne Redraw a window and all windows above it
#include <Windows.h> Window Manager
void PaintOne( theWindow, badRgn );
WindowPeek theWindow ; window of interest
RgnHandle badRgn ; region affected
This low-level function is used by the Window Manager to build update
regions for a window and all windows in front of it.
theWindow is the WindowPeek (pointer to a WindowRecord) of the bottom-most
window needing to be updated.
badRgn defines a region that was adversely affected by some previous
operation.
Returns: none

Notes: This draws the window frame of theWindow and all windows above it
(which are affected). If some content of any such window has been
adversely affected, those regions are added to the update regions of each such
window.
Global variables SaveUpdate and PaintWhite are used by this function.
Since these flags are occasionally modified by the system, they should be set
or cleared before each operation:
SaveUpdate: TRUE = add badRgn to update region
FALSE = don't add the region
PaintWhite: TRUE = erase badRgn before adding to update region
FALSE = don't erase first.