Debugger: Fix submenu offsets from removing unused.

The wrong menus were showing in several places, especially the GE
debugger.
This commit is contained in:
Unknown W. Brackets committed 2021-10-07 07:04:33 -07:00
1 parent 7dde8ef9f3
commit 58238abef5
7 files changed
+14 -9

No files matched your search

+2 -1
View File
@@ -18,6 +18,7 @@
#include "DumpMemoryWindow.h"
wchar_t CtrlMemView::szClassName[] = L"CtrlMemView";
constexpr int POPUP_SUBMENU_ID_MEMVIEW = 0;
extern HMENU g_hPopupMenus;
CtrlMemView::CtrlMemView(HWND _wnd)
@@ -482,7 +483,7 @@ void CtrlMemView::onMouseUp(WPARAM wParam, LPARAM lParam, int button)
bool enable16 = !asciiSelected && (curAddress % 2) == 0;
bool enable32 = !asciiSelected && (curAddress % 4) == 0;
HMENU menu = GetSubMenu(g_hPopupMenus,0);
HMENU menu = GetSubMenu(g_hPopupMenus, POPUP_SUBMENU_ID_MEMVIEW);
EnableMenuItem(menu,ID_MEMVIEW_COPYVALUE_16,enable16 ? MF_ENABLED : MF_GRAYED);
EnableMenuItem(menu,ID_MEMVIEW_COPYVALUE_32,enable32 ? MF_ENABLED : MF_GRAYED);