virtual BOOL TextOut(
int x, //输出字符串的X坐标
int y, //输出字符串的Y坐标
LPCTSTR lpszString, //字符串指针
int nCount //字符串的长度
);
▲多边形函数
Polygon() 绘制封闭多边形
PolyLine() 绘制多边线条
PolybneTo() 以当前画笔所在位置绘制多边线条
PolyPolygon() 绘制多个封闭多边形
PolyPolyline() 绘制多个多边线条
以上几个函数使用方法基本相同,以Polygon()函数来说明
BOOL Polygon(
LPPOINT lpPoints, //点数组指针
int nCount //多边形点数
);
▲封闭图形函数
1.画矩形的GDI函数
BOOL Rectangle(
int x1,
int y1,
int x2,
int y2
);
BOOL Rectangle(
LPCRECT lpRect
);
2.画椭圆的GDI函数
BOOL Ellipse(
int x1,
int y1,
int x2,
int y2
);
BOOL Ellipse(
LPCRECT lpRect
);
3.画圆角矩形
BOOL RoundRect(
int x1,
int y1,
int x2,
int y2,
int x3,
int y3
);
BOOL RoundRect(
LPCRECT lpRect,
POINT point
);
4.画扇形
BOOL Pie(
int x1,
int y1,
int x2,
int y2,
int x3,
int y3,
int x4,
int y4
);
BOOL Pie(
LPCRECT lpRect,
POINT ptStart,
POINT ptEnd
);
5.画弓形
BOOL Chord(
int x1,
int y1,
int x2,
int y2,
int x3,
int y3,
int x4,
int y4
);
BOOL Chord(
LPCRECT lpRect,
POINT ptStart,
POINT ptEnd
);