15,980
社区成员




void CMyDlg::OnLButtonDown(UINT,CPoint point)
{
SetCapture();
m_pre=point;
return;
}
void CMyDlg::OnLButtonUp(UINT,CPoint point)
{
if(GetCapture() != this)
return;
CClientDC dc(this);
dc.MoveTo(m_pre);
dc.LineTo(point);
ReleaseCapture();
return;
}
void CMyDlg::OnMouseMove(UINT,CPoint point)
{
if(GetCapture() != this)
return;
CClientDC dc(this);
dc.MoveTo(m_pre);
dc.LineTo(point);
m_pre=point;
return;
}