fix memwatch to have working tabs (modeless dialogs need special treatment involving IsDialogMessage() in the app message pump)

This commit is contained in:
zeromus 2008-05-27 04:03:32 +00:00
parent a94c996dd7
commit 960bc00229
2 changed files with 13 additions and 4 deletions

View File

@ -286,11 +286,20 @@ int BlockingCheck()
{
//other accelerator capable dialogs could be added here
extern HWND hwndMemWatch;
int accelerated = 0;
if(IsChild(hwndMemWatch,msg.hwnd))
accelerated = TranslateAccelerator(hwndMemWatch,fceu_hAccel,&msg);
int handled = 0;
if(hwndMemWatch)
{
if(IsChild(hwndMemWatch,msg.hwnd))
handled = TranslateAccelerator(hwndMemWatch,fceu_hAccel,&msg);
if(!handled)
{
int resylt = IsDialogMessage(hwndMemWatch,&msg);
handled = resylt;
}
}
if(!accelerated)
if(!handled)
{
TranslateMessage(&msg);
DispatchMessage(&msg);

Binary file not shown.