summaryrefslogtreecommitdiff
path: root/win/Cadview.cpp
diff options
context:
space:
mode:
authorleo2000-03-30 19:11:15 +0000
committerleo2000-03-30 19:11:15 +0000
commit0798d951c3cba8acb8f75740242b3b2d9fc848be (patch)
tree10b089721bb5fb567e459aa19e0e4bc39abf576e /win/Cadview.cpp
parent2cfefd03c4a6127434df30efaf757c8000b9eded (diff)
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
Diffstat (limited to 'win/Cadview.cpp')
-rw-r--r--win/Cadview.cpp30
1 files changed, 18 insertions, 12 deletions
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)