From 6e0c73eae7e118d4808b97e684a4d8d12eb50821 Mon Sep 17 00:00:00 2001 From: spacy51 Date: Sat, 25 Oct 2008 16:53:52 +0000 Subject: [PATCH] Enable/disable refresh button in MapViewer when automatic refresh is enabled. git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@780 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/win32/MapView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/win32/MapView.cpp b/src/win32/MapView.cpp index cd696168..280761d0 100644 --- a/src/win32/MapView.cpp +++ b/src/win32/MapView.cpp @@ -727,6 +727,7 @@ void MapView::OnAutoUpdate() } else { theApp.winRemoveUpdateListener(this); } + (CButton*)GetDlgItem(IDC_REFRESH)->EnableWindow(autoUpdate ? FALSE : TRUE); } void MapView::update()