请问类CClientDC和类CDC有何区别??~

解决方案 »

  1.   

    The CClientDC class is derived from CDC and takes care of calling the Windows functionsGetDC at construction time andReleaseDC at destruction time. This means that the device context associated with a CClientDC object is the client area of a window.
    其实就多了一个窗口句柄类成员变量
      

  2.   

    CClientDC获得的是客户区的设备上下文,CDC一般是指窗口的设备上下文!
      

  3.   

    如果是窗口的话 CClientDC的区域不包含标题栏,边框等。
    而DC则包含该窗口的所有区域。