无论是显示,还是打印,我们都可以获取HC的句柄,然后在DC上操作,由DC映射到这些物理设备上就行了。问题一:“在DC上操作”,操作指什么???怎样进行操作???问题二:“DC映射”是怎么回事???怎样映射的呢???

解决方案 »

  1.   

    在DC上操作
    画图、写字等DC映射
    我们操作的是客户端,实际显示的是显示器或打印机等,这两者之间需要建立一个映射
      

  2.   

    DC代表一个绘图环境,就想一张画布,你在上面画图写字就是对它的操作啊。
    系统将DC上你画的东西对应到显示器或打印机就是映射。
      

  3.   

    Device Contexts
    A device context is a structure that defines a set of graphic objects and their associated attributes, as well as the graphic modes that affect output. The graphic objects include a pen for line drawing, a brush for painting and filling, a bitmap for copying or scrolling parts of the screen, a palette for defining the set of available colors, a region for clipping and other operations, and a path for painting and drawing operations. The remainder of this section is divided into the following three areas. 
      

  4.   

    看看MSDN上的CDC类,对绘图、写字等操作进行了封装,调用这个类的方法可以让绘图简单