Occasionally, it is necessary to save a device context so that the original attributes will be available at a later time. For example, a Windows application may need to save its original clipping region so that it can restore the client area's original state after a series of alterations occur. The SaveDC and RestoreDC functions make this possible.