第6讲CDC啊

更新时间:2023-07-21 07:33:51 阅读: 评论:0

主要内容
GDI
Device Context Device Independence A device context is a data structure that contains information about a display surface
A device context is a mechanism through which an application outputs text and graphics to a display surface
A device context provides the following capabilities
MFC
The CDC class encapsulates device context CClientDC:A
access the client area CPaintDC:A
respond to a CWindowDC:A access the client and
CMetafileDC:A
save GDI commands to
MFC applications are given a device context in the
OnDraw
The OnDraw
smaltoneeds to be updated, that is, in respon to a
The OnDraw
成人高考英语词汇prints or performs a print preview.
CDC
四六级口语考试GDI calls
Two common methods for accessing a device
自己定义
Two common methods for accessing a device context Setting Colors
Simple Graphics Functions Simple Text Functions CDC-Derived Class
COLORREF data type
Macros for manipulating colors
GetRValue(), GetGValue(), GetBValue() which
returns the red, green, or blue component of a四级作文句型
Pixel manipulation
pDC->SetPixel(CPoint(100,100),RGB(255,
Line drawing functions
万宝路英文
pDC->MoveTo(0, 0);
Other drawing functions
Coding example
CRect Text Output Functions
Text Display Attributes
Coding example北大青鸟 北京
void CSimpleTextView::OnLButtonDown(选择
汽车油泵DC
画笔通常完成绘制线条的任务ct是什么
程序员可以创建自己的sleepless in attle
DC
自己创建的
大家好英语
当删除
画刷用来填充封闭图形
CPen
CFont
颜色对话框
CColorDialog

本文发布于:2023-07-21 07:33:51,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/78/1108527.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:绘制   线条   完成   画刷   英语词汇   考试   句型   青鸟
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图