31.2.18 Paint

Painting functions prepare a window for painting and carry out some useful general-purpose graphics operations. Although all the paint functions are specifically intended for the system display, some can be used for other output devices. The following list briefly describes each painting function:

Function Description

BeginPaint Prepares a window for painting
EndPaint Marks the end of window repainting
ExcludeUpdateRgn Prevents a region from being painted.
GetDC Retrieves the display context for the client area
GetDCEx Gets a dc with control over clipping
GetUpdateRect Copies the dimensions of a window region's bounding rectangle
GetUpdateRgn Copies a window's update region
GetWindowDC Retrieves the display context for an entire window
InvalidateRect Marks a rectangle for repainting
InvalidateRgn Marks a region for repainting
ReleaseDC Releases a display context
ValidateRect Releases the specified rectangle from repainting
ValidateRgn Releases the specified region from repainting