summaryrefslogtreecommitdiff
path: root/win/cadbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'win/cadbar.cpp')
-rw-r--r--win/cadbar.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/win/cadbar.cpp b/win/cadbar.cpp
index 80a1df3..25da26c 100644
--- a/win/cadbar.cpp
+++ b/win/cadbar.cpp
@@ -6,6 +6,8 @@
#include "leocad.h"
#include "CADBar.h"
#include "StepPop.h"
+#include "project.h"
+#include "lc_application.h"
#ifdef _DEBUG
#undef THIS_FILE
@@ -70,6 +72,13 @@ void CCADStatusBar::OnLButtonDown(UINT nFlags, CPoint point)
CMenu menuPopups;
menuPopups.LoadMenu(IDR_POPUPS);
CMenu* pMenu = menuPopups.GetSubMenu(7);
+
+ int SXY, SZ;
+ lcGetActiveProject()->GetSnapIndex(&SXY, &SZ);
+
+ pMenu->CheckMenuRadioItem(0, 9, SXY, MF_BYPOSITION);
+ pMenu->CheckMenuRadioItem(10, 19, 10 + SZ, MF_BYPOSITION);
+
pMenu->TrackPopupMenu(TPM_LEFTALIGN|TPM_RIGHTBUTTON, point.x, point.y, AfxGetMainWnd());
}