Drawing Tool Classes

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Drawing Tool Classes.

These classes encapsulate drawing tools that are used to draw on a device context.

CGdiObject
The base class for GDI drawing tools.

CBrush
Encapsulates a GDI brush that can be selected as the current brush in a device context. Brushes are used for filling interiors of objects being drawn.

CPen
Encapsulates a GDI pen that can be selected as the current pen in a device context. Pens are used for drawing the border lines of objects.

CFont
Encapsulates a GDI font that can be selected as the current font in a device context.

CBitmap
Encapsulates a GDI bitmap, providing an interface for manipulating bitmaps.

CPalette
Encapsulates a GDI color palette for use as an interface between the application and a color output device such as a display.

CRectTracker
Displays and handles the user interface for resizing and moving rectangular objects.

See Also

Class Overview