How to disable [ALT] Windows window menu popup?

How to disable [ALT] Windows window menu popup???

Hi,

I am making a game for PC Windows.
Game runs in a 640x480 window.

One of the keys to use is the [ALT] key.

Problem is that sometimes when pressing [ALT] key, the window’s menu popups
and disrupts the game’s action.

Is there a way in SDL to disable [ALT] Windows window menu popup???

Thanks in advance.

Jesse
SLNTHERO at AOL.com (mailto:SLNTHERO at AOL.com)
http://www.SilentHeroProductions.com (http://www.SilentHeroProductions.com)

Hello SlntHero,

Wednesday, October 4, 2006, 11:41:04 PM, you wrote:

One of the keys to use is the [ALT] key.

Problem is that sometimes when pressing [ALT] key, the window’s menu popups
and disrupts the game’s action.

Is there a way in SDL to disable [ALT] Windows window menu popup???

I don’t know if theres any mechanism in SDL to allow it, but what you
need to do is trap the WM_SYSKEYDOWN and WM_SYSKEYUP messages in the
window handler to prevent them triggering the menus from keyboard
shortcuts.–
Best regards,
Peter mailto:@Peter_Mulholland