activate ramwatch hotkeys

This commit is contained in:
gocha 2009-10-08 13:04:27 +00:00
parent 197322bcf1
commit 449d62e0a8
2 changed files with 16 additions and 3 deletions

View File

@ -53,6 +53,8 @@
#include "cheat.h" #include "cheat.h"
#include "debug.h" #include "debug.h"
#include "ntview.h" #include "ntview.h"
#include "ram_search.h"
#include "ramwatch.h"
#include "memview.h" #include "memview.h"
#include "tracer.h" #include "tracer.h"
#include "cdlogger.h" #include "cdlogger.h"
@ -308,6 +310,20 @@ int BlockingCheck()
if(!handled) if(!handled)
handled = IsDialogMessage(hwndMemWatch,&msg); handled = IsDialogMessage(hwndMemWatch,&msg);
} }
if(RamSearchHWnd)
{
handled |= IsDialogMessage(RamSearchHWnd, &msg);
}
if(RamWatchHWnd)
{
if(IsDialogMessage(RamWatchHWnd, &msg))
{
if(msg.message == WM_KEYDOWN) // send keydown messages to the dialog (for accelerators, and also needed for the Alt key to work)
SendMessage(RamWatchHWnd, msg.message, msg.wParam, msg.lParam);
handled = true;
}
}
if(!handled && hwndTasEdit) if(!handled && hwndTasEdit)
{ {
if(IsChild(hwndTasEdit,msg.hwnd)) if(IsChild(hwndTasEdit,msg.hwnd))

View File

@ -1137,8 +1137,6 @@ LRESULT CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
} }
break; break;
#if 0
// this message is never received
case WM_KEYDOWN: // handle accelerator keys case WM_KEYDOWN: // handle accelerator keys
{ {
SetFocus(GetDlgItem(hDlg,IDC_WATCHLIST)); SetFocus(GetDlgItem(hDlg,IDC_WATCHLIST));
@ -1150,7 +1148,6 @@ LRESULT CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
if(RamWatchAccels && TranslateAccelerator(hDlg, RamWatchAccels, &msg)) if(RamWatchAccels && TranslateAccelerator(hDlg, RamWatchAccels, &msg))
return true; return true;
} break; } break;
#endif
// case WM_CLOSE: // case WM_CLOSE:
// RamWatchHWnd = NULL; // RamWatchHWnd = NULL;