MFC 中设备环境类的派生层次如下:
CObject
CDC
CClientDC
CPaintDC
CWindowDC
CMateFileDC
1 CDC 类
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. Do all
drawing through the member functions of a CDC object. The class
provides member functions for device-context operations, working with
drawing tools, type-safe graphics device interface (GDI) object selection,
and working with colors and palettes.
It also provides member functions for getting and setting drawing
attributes, mapping, working with the viewport, working with the window
extent, converting coordinates, working with regions, clipping, drawing
lines, and drawing simple shapes, ellipses, and polygons.
Member functions are also provided for drawing text, working with fonts,
using printer escapes, scrolling, and playing metafiles.
To use a CDC object, construct it, and then call its member functions
that parallel Windows functions that use device contexts.
For specific uses, the Microsoft Foundation Class Library provides
several classes derived from CDC .
CPaintDC encapsulates calls to BeginPaint and EndPaint. CClientDC
manages a display context associated with a window's client area.
CWindowDC manages a display context associated with an entire
window, including its frame and controls. CMetaFileDC associates a
device context with a metafile.
CDC contains two device contexts, m_hDC and m_hAttribDC, which,
on creation of a CDC object, refer to the same device.
CDC directs all output GDI calls to m_hDC and most attribute GDI calls
to m_hAttribDC. (An example of an attribute call is GetTextColor, while
- ppt怎么保存不变字体 > 绘图与打印
-
绘图与打印
下载该文档 文档格式:PPT 更新时间:2009-06-01 下载次数:0 点击次数:2文档基本属性 文档语言: 文档格式: ppt 文档作者: Zhanghanyu 关键词: 主题: 备注: 点击这里显示更多文档属性 经理: 单位: cnu 分类: 创建时间: 上次保存者: Zhang 修订次数: 98 编辑时间: 文档创建者: 修订: 加密标识: 幻灯片: 160 段落数: 1932 字节数: 641599 备注: 0 演示格式: 在屏幕上显示 上次保存时间:
- 下载地址 (推荐使用迅雷下载地址,速度快,支持断点续传)
- PPT格式下载
- 更多文档...
-
上一篇:现代教育中心
下一篇:1、下列不属于多媒体信息范畴的是 ( D )。
点击查看更多关于ppt怎么保存不变字体的相关文档
- 您可能感兴趣的
- ppt字体保存 ppt怎么改字体颜色 如何设置ppt默认字体 ppt中字体的风格创意 ppt艺术字体下载 ppt字体有阴影 ppt超链接字体颜色 ppt用什么字体好 ppt设置默认字体
- 大家在找
-
- · qq锁定一段时间
- · cad画图练习题
- · 优酷电影3gp转换器
- · 四川省驾校考试一点通
- · 一年级上学期期中考试
- · cotton,like,silk,was
- · 诛仙2捕兽网怎么用
- · 2011安庆职教中心
- · 流体力学习题集
- · 如何刻录音乐光盘
- · 数据通信与计算机网络
- · 2011国庆节放假时间
- · 沁园春雪书法
- · 物质运输的器官课件
- · 怎么word把文章分两栏
- · 装配作业指导书
- · 东莞医院排名
- · 会计学考试试题
- · 汽车转向系毕业设计论文下载
- · 生化危机5boss
- · 怎样做ppt课件
- · 李连杰金三角枪战电影
- · j开头的女英文名
- · 国家级少儿武术学校
- · 教书育人标兵评选材料
- · 水务专业知识面试题
- · 非特异性免疫应答
- · 南充世纪天骄
- · 小学二年级体育课游戏
- · 小学语文万能说课稿
- 赞助商链接