摘要:
CClientDC ClientDC(this); OnPrepareDC(&ClientDC); POINT point[3] = {{10,20},{100,200},{220,250}}; ClientDC.Polygon(point,3); 阅读全文
摘要:
http://bbs.csdn.net/topics/350053678 阅读全文
摘要:
COLORREF RGB(BYTEbyRed,// red component of colorBYTEbyGreen,// green component of colorBYTEbyBlue// blue component of color);用16进制写 阅读全文
摘要:
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();} 阅读全文