fixed MEMW_OPTIONS_LOADSTART menu item

This commit is contained in:
mauzus 2008-05-18 04:57:46 +00:00
parent 672ef0b001
commit 2cc25611a5
1 changed files with 3 additions and 2 deletions

View File

@ -537,14 +537,15 @@ static BOOL CALLBACK MemWatchCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARA
} }
break; break;
case WM_PAINT: { case WM_PAINT:
PAINTSTRUCT ps; PAINTSTRUCT ps;
BeginPaint(hwndDlg, &ps); BeginPaint(hwndDlg, &ps);
EndPaint(hwndDlg, &ps); EndPaint(hwndDlg, &ps);
UpdateMemWatch(); UpdateMemWatch();
break;
case WM_INITMENU:
CheckMenuItem(memwmenu, MEMW_OPTIONS_LOADSTART, MemWatchLoadOnStart ? MF_CHECKED : MF_UNCHECKED); CheckMenuItem(memwmenu, MEMW_OPTIONS_LOADSTART, MemWatchLoadOnStart ? MF_CHECKED : MF_UNCHECKED);
break; break;
}
case WM_CLOSE: case WM_CLOSE:
case WM_QUIT: case WM_QUIT:
CloseMemoryWatch(); CloseMemoryWatch();