From 451bce87a6c0730d2c53c33d09c5ea265d5c0459 Mon Sep 17 00:00:00 2001 From: mauzus Date: Sat, 24 May 2008 11:09:14 +0000 Subject: [PATCH] Ram Filter: double clicking a ram address sends it to memwatch --- src/drivers/win/monitor.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/drivers/win/monitor.cpp b/src/drivers/win/monitor.cpp index 2794b342..eb463143 100644 --- a/src/drivers/win/monitor.cpp +++ b/src/drivers/win/monitor.cpp @@ -2,6 +2,7 @@ #include "monitor.h" #include "debugger.h" #include "debuggersp.h" +#include "memwatch.h" #include "..\..\fceu.h" #include "..\..\debug.h" #include "..\..\conddebug.h" @@ -256,6 +257,17 @@ BOOL CALLBACK MonitorCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam break; } + case LBN_DBLCLK: + { + if (LOWORD(wParam) == RESULTS_BOX) + { + char str[259] = { 0 },str2[259] = { 0 }; + SendDlgItemMessage(hwndDlg,RESULTS_BOX,LB_GETTEXT,SendDlgItemMessage(hwndDlg,RESULTS_BOX,LB_GETCURSEL,0,0),(LPARAM)(LPCTSTR)str); + strcpy(str2,str); + str2[4] = 0; + AddMemWatch(str2); + } + } } break; case WM_CLOSE: