Multiple choice technology programming languages

which class provides member functions for device-context operations, working with drawing tools, type-safe graphics device interface (GDI) object selection, and working with colors and palettes?

  1. CDOCItem

  2. CDC

  3. CBrush

  4. CAnimateCtrl

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

CDC (Device Context) class in MFC provides member functions for device-context operations including drawing tools selection, GDI object management, and color/palette operations. It's the fundamental class for all drawing operations in Windows. CBrush handles only brush objects, CAnimateCtrl is for animation controls, and CDOCItem is for document items.