摘要: CClientDC ClientDC(this); OnPrepareDC(&ClientDC); POINT point[3] = {{10,20},{100,200},{220,250}}; ClientDC.Polygon(point,3); 阅读全文
posted @ 2014-03-28 21:59 皮皮uu 阅读(239) 评论(0) 推荐(0) 编辑
摘要: http://bbs.csdn.net/topics/350053678 阅读全文
posted @ 2014-03-28 21:40 皮皮uu 阅读(151) 评论(0) 推荐(0) 编辑
摘要: COLORREF RGB(BYTEbyRed,// red component of colorBYTEbyGreen,// green component of colorBYTEbyBlue// blue component of color);用16进制写 阅读全文
posted @ 2014-03-28 20:51 皮皮uu 阅读(1032) 评论(0) 推荐(0) 编辑
摘要: classshape{public:shape(){};virtualvoiddraw() //注意这里设置为虚函数{ 画图形;}};classrectangle : publicshape{public:rectangle(){};voiddraw(){ 画方形;}};classround : publicshape{public:round(){};voiddraw(){ 画圆形;}};voidmain(){shape * s;s = newrectangle();s->draw();s = newround();s->draw();} 阅读全文
posted @ 2014-03-28 20:37 皮皮uu 阅读(196) 评论(0) 推荐(0) 编辑