From 0798d951c3cba8acb8f75740242b3b2d9fc848be Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 30 Mar 2000 19:11:15 +0000 Subject: The Linux version now allows you to select multiple pieces using the mouse if you hold the CTRL key down git-svn-id: http://svn.leocad.org/trunk@59 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- win/Cadview.cpp | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'win/Cadview.cpp') diff --git a/win/Cadview.cpp b/win/Cadview.cpp index 9a3f1cd..8d3349d 100644 --- a/win/Cadview.cpp +++ b/win/Cadview.cpp @@ -858,34 +858,40 @@ void CCADView::OnSize(UINT nType, int cx, int cy) CView::OnSize(nType, cx, cy); } -void CCADView::OnMouseMove(UINT /*nFlags*/, CPoint point) +void CCADView::OnMouseMove(UINT nFlags, CPoint point) { - project->OnMouseMove(point.x, m_szView.cy - point.y - 1); + project->OnMouseMove(point.x, m_szView.cy - point.y - 1, + (nFlags & MK_CONTROL) != 0, (nFlags & MK_SHIFT) != 0); } -void CCADView::OnLButtonUp(UINT /*nFlags*/, CPoint point) +void CCADView::OnLButtonUp(UINT nFlags, CPoint point) { - project->OnLeftButtonUp(point.x, m_szView.cy - point.y - 1); + project->OnLeftButtonUp(point.x, m_szView.cy - point.y - 1, + (nFlags & MK_CONTROL) != 0, (nFlags & MK_SHIFT) != 0); } -void CCADView::OnLButtonDown(UINT /*nFlags*/, CPoint point) +void CCADView::OnLButtonDown(UINT nFlags, CPoint point) { - project->OnLeftButtonDown(point.x, m_szView.cy - point.y - 1); + project->OnLeftButtonDown(point.x, m_szView.cy - point.y - 1, + (nFlags & MK_CONTROL) != 0, (nFlags & MK_SHIFT) != 0); } -void CCADView::OnLButtonDblClk(UINT /*nFlags*/, CPoint point) +void CCADView::OnLButtonDblClk(UINT nFlags, CPoint point) { - project->OnLeftButtonDoubleClick(point.x, m_szView.cy - point.y - 1); + project->OnLeftButtonDoubleClick(point.x, m_szView.cy - point.y - 1, + (nFlags & MK_CONTROL) != 0, (nFlags & MK_SHIFT) != 0); } -void CCADView::OnRButtonDown(UINT /*nFlags*/, CPoint point) +void CCADView::OnRButtonDown(UINT nFlags, CPoint point) { - project->OnRightButtonDown(point.x, m_szView.cy - point.y - 1); + project->OnRightButtonDown(point.x, m_szView.cy - point.y - 1, + (nFlags & MK_CONTROL) != 0, (nFlags & MK_SHIFT) != 0); } -void CCADView::OnRButtonUp(UINT /*nFlags*/, CPoint point) +void CCADView::OnRButtonUp(UINT nFlags, CPoint point) { - project->OnRightButtonUp(point.x, m_szView.cy - point.y - 1); + project->OnRightButtonUp(point.x, m_szView.cy - point.y - 1, + (nFlags & MK_CONTROL) != 0, (nFlags & MK_SHIFT) != 0); } void CCADView::OnDropDown (NMHDR* pNotifyStruct, LRESULT* pResult) -- cgit v1.2.3