dc
Device Contexts 应该怎么理解呀!

解决方案 »

  1.   

    设备环境~  怎么理解吧,你可以看作是一个类似于画板的东西,可以画、写、显示.....本质上他是块内存区域,用于显示、画图等
    ====================
    A   device   context   is   a   Windows   data   structure   containing   information   about   the   drawing   attributes   of   a   device   such   as   a   display   or   a   printer.   All   drawing   calls   are   made   through   a   device-context   object,   which   encapsulates   the   Windows   APIs   for   drawing   lines,   shapes,   and   text.   Device   contexts   allow   device-independent   drawing   in   Windows.   Device   contexts   can   be   used   to   draw   to   the   screen,   to   the   printer,   or   to   a   metafile.
      

  2.   

    HANDLE其实都是unsigned long,看看《Windows核心编程》就很清楚了。