表 5.1 设备描述表属性表
设备描述表属性 默认值 获取函数 设置函数
Mapping Mode(映射模式)
MM_TEXT GetMapMode SetMapMode
Windows Prigin(窗口原
点)
(0,0) GetWindowOrgEx SetWindowOrgEx
OSetWindowOrgEx
Viewport Prigin(视口原
点)
(0,0))
GetViewportOrgEx SetViewportOrgEx
OViewportOrgEx
Window Extents(窗口范围)
(1,1) GetWindowExtEx SetWindowExtEx
SetMapMode
ScaleWindowExtEx
Viewport Extents(视图范
围)
(1,1) GetViewportExtEx SetViewportExtEx
SetMapMode
ScaleViewportExtEx
Pen(笔)
BLACK_PEN SelectObject SelectObject
Brush(画刷)
WHITE_BRU
SH
SelectObject SelectObject
Brush Origin(画刷原点)
(0,0) GetBrushOrgEx SeetBrushOrgEx
Font(字体)
SYSTEM_FO
NT
SelectObject SelectObject
BitMap(位图)
N/A SelectObject SelectObject
Current Position(笔、画刷
的当前位置)
(0,0) GetCurrentPositionE
x
SetCurrentPositionE
x
Background Color(背景颜
色)
White GetBackColor SetBackColor
Background Mode(背景模
式)
OPAQUE(不
透明)
GetBackMode SetBackMode
Drawing Mode(绘图模式)
R2_COPYPE
N
GetRop2 SetRop2
Text Color(文本颜色)
Black GetTextColor SetTextColor
Stretch Mode(缩放模式)
BLACKONW
HITE
GetStretchBltMode SetStretchBltMode
Polygon Fill Mode(多边形填
充模式)
ALTERNATE GetPolyFillMode SetPolyFillMode
Intercharacter Spacing(字
符间距)
0 GetTextCharacterExt
ra
SetTextCharacterExt
ra
Clipping Region(裁剪区域)
None GetClipBox SetClipBox
评论0