无论是显示,还是打印,我们都可以获取HC的句柄,然后在DC上操作,由DC映射到这些物理设备上就行了。问题一:“在DC上操作”,操作指什么???怎样进行操作???问题二:“DC映射”是怎么回事???怎样映射的呢???
解决方案 »
- 怎么调试这个C++ COM组件呢?
- 关于Directshow视频压缩的问题
- VC6.0中,如何使listcontrol中每行左边有个勾勾
- link 2005!!!!!!!!!!在线等待!
- 为什么我的程序段在循环运行多次后就会异常退出呢?
- 谁能帮帮我看看哪里错?
- 怎样实现在ComboBox框中实现 Delphi 中的 DriverListBox 控件能?
- 我准备在项目中添加个ATL,但是我点击New ATL object时, 弹出an error while generating the object弹出框,请问各位高高手,快快指点迷津,小弟很急!!!!,
- 谁能帮助我, VISUAL C++ 高手必看
- 如何用VC使光驱禁用?
- 如何在一个对话框中单击一个按钮弹出另一个对话框
- ATL 怎么在IE里面嵌入一个进度条呢
画图、写字等DC映射
我们操作的是客户端,实际显示的是显示器或打印机等,这两者之间需要建立一个映射
系统将DC上你画的东西对应到显示器或打印机就是映射。
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.