Update Clip2DView.cpp

This commit is contained in:
xixu-me committed 2024-10-18 18:50:11 +08:00
1 parent 6b8e38a596
commit 3c42b77629
1 file changed
-20
-20
View File
@@ -261,23 +261,3 @@ int CClip2DView::ZoomX(int x) {
int CClip2DView::ZoomY(int y) {
return Round((y - nRCenter.y) * nScale + nRCenter.y);
}
void CClip2DView::OnLButtonDown(UINT nFlags, CPoint point) {
// TODO: Add your message handler code here and/or call default
if (nScale <= 5)
nScale = nScale + 1;
else
MessageBox(_T("The magnification is too large"));
Invalidate(FALSE);
CView::OnLButtonDown(nFlags, point);
}
void CClip2DView::OnRButtonDown(UINT nFlags, CPoint point) {
// TODO: Add your message handler code here and/or call default
if (nScale >= 2)
nScale = nScale - 1;
else
MessageBox(_T("The magnification is too small"));
Invalidate(FALSE);
CView::OnRButtonDown(nFlags, point);
}