this->GetDC()->MoveTo(x,y); this->GetDC()->LineTo(x2,y2); 线是画出来的,但起点始终不变. 换用以下方法解决: CClientDC dc(this); 不明白为什么.