Re: [AD] winXP ALT+key beep problem. |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Mon, Feb 28, 2005 at 02:43:18PM +1100, AJ wrote:
> documents the WM_MENUCHAR allegro is sent when the user presses the
> ALT+key.
>
> from the MSDN doc, it says if we return MNC_CLOSE in the hi word and
> the key in the lower word, it will not issue the beep.
>
> i added this to the /allegro4.1.18/src/win/wwnd.c
> func directx_wnd_proc()
> case WM_MENUCHAR :
> return (MNC_CLOSE<<16)|(wparam&0xffff);
>
> which prevents the beep.
Cheers. It doesn't actually produce any other side effects such as
keypresses being ignored?
If not, I'm going to apply the change as soon as possible (someone else
can do it in the mean time if they want).
Evert