In my C OpenGL app the window style requires WS_SYSMENU to show the close and minimize buttons, but it also brings up a stupid menu everytime I press alt.
How can I disable this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One way is to handle WM_DEADCHAR and WM_SYSCHAR and discard the press of the ALT key (or do your own processing). This will still allow the user to activate the menu with the mouse and from the taskbar… which is why you really shouldn’t disable it completely, users like to be able to manipulate windows from the taskbar.