主要内容
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