CodePudding user response:
The CDCThe CDC class encapsulates The functionality of a Windows device - The context, which is a GDI - managed structure containing information about The operating modes and The current selections of a device, to as a display or a printer.
CClientDC
The CClientDC class is derived from The CDC and takes care of calling The Windows functions provides GetDC at construction time and ReleaseDC at destruction time. This means that The device context associated with a CClientDC object is The client area of a window.
CodePudding user response:
Drawing is very simple you can encapsulate a trying to class, is ok,