Sign in to follow this  
Qa303asmGuru

Disabling the Alt key

Recommended Posts

In reference to this really old thread I thought I might clarify the first response to the question asked. To use the WM_SYSCOMMAND to disable the Alt key, simply return from the window procedure...in other words, don't let the message reach the default procedure which pauses the window and brings up the system menu. Quick and dirty:
LRESULT WinProc(...) {
  switch(message){
    case WM_SYSCOMMAND: return 0;
    .
    .
    .
  }
  return (DefWindowProc(hwnd, message, wParam, lParam));
}
Worked for me.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this