Graphics Device Interface (GDI) Classes

The following classes wrap the Windows device context and drawing tools. They allow the developer to take maximum advantage of C++ syntax.

Device Contexts

CDC The base class for device contexts, used directly for whole-display and nondisplay contexts.  
CClientDC Display contexts for client areas of windows.  
CMetaFileDC Metafile device contexts.  
CPaintDC Display contexts used in OnPaint member functions.  
CWindowDC Display contexts for entire windows.  

GDI Drawing Objects

CGdiObject The base class for GDI drawing tools.  
CBitmap GDI physical bitmaps.  
CBrush GDI physical brushes.  
CFont GDI physical fonts.  
CPalette GDI physical palettes.  
CPen GDI physical pens.  
CRgn GDI physical regions.