//定义并设置画笔粗细 CPen bLine; bLine.CreatePen(PS_INSIDEFRAME|PS_SOLID,2,RGB(0,0,0)); //创建DC CPaintDC dc(this); dc.SelectObject(b