Re: [AD] winXP ALT+key beep problem.

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


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?


not that i can see.
i tried the /allegro4.1.18/tests/test.exe  and the menu still worked.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/