Send messages to the debugger
This commit is contained in:
parent
177b9fa6b1
commit
bfbea62ce3
2 changed files with 16 additions and 1 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue