fix alt key again

This commit is contained in:
cxgeorge 2002-05-22 22:30:22 +00:00
parent 09b13f8356
commit 7d24174f65
3 changed files with 27 additions and 0 deletions

View File

@ -506,6 +506,15 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
}
break;
case WM_SYSCOMMAND:
if(wparam==SC_KEYMENU) {
// if Alt is released (alone w/o other keys), defwindproc will send
// this command, which will 'activate' the title bar menu (we have none)
// and give focus to it. we dont want this to happen, so kill this msg
return 0;
}
break;
case WM_KEYDOWN: {
POINT point;
GetCursorPos(&point);

View File

@ -505,6 +505,15 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
}
}
break;
case WM_SYSCOMMAND:
if(wparam==SC_KEYMENU) {
// if Alt is released (alone w/o other keys), defwindproc will send
// this command, which will 'activate' the title bar menu (we have none)
// and give focus to it. we dont want this to happen, so kill this msg
return 0;
}
break;
case WM_KEYDOWN: {
POINT point;

View File

@ -1817,6 +1817,15 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
}
break;
case WM_SYSCOMMAND:
if(wparam==SC_KEYMENU) {
// if Alt is released (alone w/o other keys), defwindproc will send
// this command, which will 'activate' the title bar menu (we have none)
// and give focus to it. we dont want this to happen, so kill this msg
return 0;
}
break;
case WM_KEYDOWN: {
POINT point;