MFC初学,绘制直线CPenpen(PS_DOT,1,RGB(0,255,0));CClientDCdc(this);CPen*pOldPen=dc.SelectObject(&pen);dc.MoveTo(m_ptOrigin);dc.LineTo(point);dc.SelectObject(pOldPen);