15,978
社区成员
发帖
与我相关
我的任务
分享
CClientDC clientDC (this);
//创建Graphics对象
Graphics graphics(clientDC);
//创建pen
Pen myPen(Color(0,255,0, 0));
myPen.SetWidth(10);
//画X轴
myPen.SetColor(Color::Blue);
CRect rect;
GetClientRect(&rect);
graphics.DrawLine(&myPen, 0, 0, rect.right, rect.bottom);