Simple problem, normally a program will produce a MessageBeep if the user presses Alt+Whatever and there’s no hotkey associated with it. What API functions can I call to avoid this?
Handling WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN, and WM_SYSKEYUP all with return 0; on my main WndProc does not work.
WM_MENUCHAR should be what your looking for. MSDN search is you friend (>message beep shortcut< or >message beep accelerator<).
http://msdn.microsoft.com/en-us/library/ms646349(VS.85).aspx
Edit: seems to be only for active menus.Edit 2: works like a charm. note MSDN:
I’ve used
MNC_CLOSE << 16.