MFC画图疑问
void CTest1View::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CView::OnLButtonDown(nFlags, point);
this->m_startpoint=point;
CClientDC dc(this);
dc.MoveTo(point);
dc.LineTo(this->m_endpoint);
CView::OnLButtonDown(nFlags,point); ////请问这里是什么意思?}
void CTest1View::OnLButtonUp(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CView::OnLButtonUp(nFlags, point);
this->m_endpoint=point;
}
还有一个疑问就是,我用这种方法画直线,每一次都是以前一条直线的终点为起点,而我是想获取当前鼠标的坐标,而不是前一条直线的终点为起点开始画的.请问怎么实现;