win32 - memwatch - save menu item is grayed if file hasn't changed

This commit is contained in:
adelikat 2009-06-21 17:17:06 +00:00
parent 0fa27c49cd
commit eb7cbc5673
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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);