mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-02-26 21:30:36 +00:00
For #556: Suppress the Windows Default Beep (ie. Ding) whenever ALT+<key> is pressed.
This commit is contained in:
parent
9fff2070c4
commit
20cd8913f5
@ -1736,6 +1736,7 @@ LRESULT CALLBACK FrameWndProc (
|
||||
|
||||
if ((wparam == VK_F10) || (wparam == VK_MENU)) // VK_MENU == ALT Key
|
||||
return 0;
|
||||
|
||||
break;
|
||||
|
||||
case WM_SYSKEYUP:
|
||||
@ -1748,6 +1749,9 @@ LRESULT CALLBACK FrameWndProc (
|
||||
PostMessage(window,WM_KEYUP,wparam,lparam);
|
||||
break;
|
||||
|
||||
case WM_MENUCHAR: // GH#556 - Suppress the Windows Default Beep (ie. Ding) whenever ALT+<key> is pressed
|
||||
return (MNC_CLOSE << 16) | (wparam & 0xffff);
|
||||
|
||||
case WM_USER_BENCHMARK: {
|
||||
UpdateWindow(window);
|
||||
ResetMachineState();
|
||||
|
Loading…
x
Reference in New Issue
Block a user