Difference Between CDC and CClientDC
-
what is the Difference Between CDC and CClientDC.Please explain a bit. Be FaithFull To Your Work.
-
what is the Difference Between CDC and CClientDC.Please explain a bit. Be FaithFull To Your Work.
Hello As MSDN said:
"The **CDC** class defines a class of device-context objects. The CDC object provides member functions for working with a device context, such as a display or printer, as well as members for working with a display context associated with the client area of a window."
and"The **CClientDC** class is derived from CDC and takes care of calling the Windows functions 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**."
So, CDC is for working with any devices, while CClientDC is for windows client area only. Andrew