InvalRect
InvalRect
Force an area of a window to be redrawn Rect *badRect ; rectangle needing update (in current window) InvalRect causes the Window Manager to issue an update event, so that you will redraw the selected rectangle.
badRect is a pointer to a rectangle. It defines an area, in local window
coordinates, that needs to be redrawn.
Notes: This adds the specified rectangle to the update region of the current
which is not a window is a fatal error.
This call is used in many situations. Use it after TextEdit functions that change the font, justification, and other attributes by modifying the TERec structure (i.e, functions that are not recognized automatically by the
window manager). Use it after calling SizeWindow and subsequently redrawing the scroll bars, to ensure that the modified window gets redrawn.
Use it after scrolling text upward - to force the bottom of the window to be
included in the update area.
InvalRgn lets you specify a region for this same purpose. Use ValidRect to remove a rectangle from the window's update region, e.g., after drawing the scrollbars, they become valid, so there is no need to
update them again.