From 1f09315ee9d57c00fa398929c14d02ad8768cb59 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 23 Feb 2006 19:17:47 +0000 Subject: Added check marks to the status bar snap menu. git-svn-id: http://svn.leocad.org/trunk@492 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- win/cadbar.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'win/cadbar.cpp') 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()); } -- cgit v1.2.3