A device context is a Windows data structure containing information about the drawing attributes of a device such as a display or a printer.
All drawing calls are made through a device-context object, which encapsulates the Windows APIs for drawing lines, shapes, and text.
Device contexts allow device-independent drawing in Windows.