An application can perform the following operations on a device context:
·Enumerate existing graphic objects.
·Select new graphic objects.
·Delete existing graphic objects.
·Save the current graphic objects, their attributes, and the graphic modes.
·Restore previously saved graphic objects, their attributes, and the graphic modes.
In addition, an application can use a device context to determine how graphics output is translated, cancel lengthy drawing operations (begun by a thread in a multithreaded application), or reset a printer to a particular state.