Send messages to the debugger

This commit is contained in:
Kingcom 2013-08-14 23:46:59 +02:00
parent 177b9fa6b1
commit bfbea62ce3
2 changed files with 16 additions and 1 deletions

View file

@ -142,7 +142,18 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
}
//Translate accelerators and dialog messages...
if (!TranslateAccelerator(hwndMain, g_debuggerActive ? hDebugAccelTable : hAccelTable, &msg))
HWND wnd;
HACCEL accel;
if (g_debuggerActive)
{
wnd = disasmWindow[0]->GetDlgHandle();
accel = hDebugAccelTable;
} else {
wnd = hwndMain;
accel = hAccelTable;
}
if (!TranslateAccelerator(wnd, accel, &msg))
{
if (!DialogManager::IsDialogMessage(&msg))
{