From eb7cbc56734b42b4c4f414b437ef24234432f6ec Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 21 Jun 2009 17:17:06 +0000 Subject: [PATCH] win32 - memwatch - save menu item is grayed if file hasn't changed --- changelog.txt | 1 + src/drivers/win/memwatch.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/changelog.txt b/changelog.txt index e5440ed0..ebc25db4 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,4 @@ +21-jun-2009 - adelikat - win32 - memwatch - save menu item is grayed if file hasn't changed 20-jun-2009 - adelikat - win32 - memwatch - fixed a regression I made in 2.0.1 that broke the Save As menu item 17-jun-2009 - qeed - Sound core fix, updated with the correct values for the noise and DMC table, and also fixed the IRQ inhibit behavior for register $4017. Also fixed the CPU diff --git a/src/drivers/win/memwatch.cpp b/src/drivers/win/memwatch.cpp index e0e3c097..9d74979c 100644 --- a/src/drivers/win/memwatch.cpp +++ b/src/drivers/win/memwatch.cpp @@ -714,6 +714,9 @@ static BOOL CALLBACK MemWatchCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARA switch(uMsg) { + case WM_ENTERMENULOOP: + EnableMenuItem(memwmenu,MEMW_FILE_SAVE,MF_BYCOMMAND | fileChanged ? MF_ENABLED:MF_GRAYED); + break; case WM_MOVE: { RECT wrect; GetWindowRect(hwndDlg,&wrect);