Ram Filter: double clicking a ram address sends it to memwatch

This commit is contained in:
mauzus 2008-05-24 11:09:14 +00:00
parent ff532f74e8
commit 451bce87a6
1 changed files with 12 additions and 0 deletions

View File

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