win32 - Hex Editor - ask before removing all bookmarks

This commit is contained in:
adelikat 2010-09-22 19:20:16 +00:00
parent 26d249ed91
commit 2a1a564b3c
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,4 @@
22-sept-2010 - adelikat - win32 - Hex Editor - ask before removing all bookmarks
04-sept-2010 - adelikat - Win32 - Ramwatch - fix displaying of 2 byte values
26-aug-2010 - mart0258 - W32 - fix crash when re-opening debugging window
20-aug-2010 - adelikat - Win32 - Display movie name at the top of the main window

View File

@ -966,7 +966,6 @@ LRESULT CALLBACK MemViewCallB(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
SCROLLINFO si;
int x, y, i, j;
int tempAddy;
const int MemFontWidth = debugSystem->fixedFontWidth;
const int MemFontHeight = debugSystem->fixedFontHeight + HexRowHeightBorder;
@ -1626,8 +1625,15 @@ LRESULT CALLBACK MemViewCallB(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
// ################################## Start of SP CODE ###########################
case MENU_MV_BOOKMARKS_RM_ALL:
removeAllBookmarks(GetSubMenu(GetMenu(hwnd), 3));
UpdateColorTable();
//TODO: only ask if there is 1 or more bookmarks
if (nextBookmark)
{
if (MessageBox(hwnd, "Remove All Bookmarks?", "Bookmarks", MB_YESNO) == IDYES)
{
removeAllBookmarks(GetSubMenu(GetMenu(hwnd), 3));
UpdateColorTable();
}
}
return 0;
case MENU_MV_HELP: