Win32: Ignore SC_*MENU messages (triggered on ALT and F10 and made LWJGL apps appear to hang)

This commit is contained in:
Elias Naur 2005-04-18 07:31:07 +00:00
parent 096fca927d
commit cc8cff2d42
1 changed files with 3 additions and 0 deletions

View File

@ -134,6 +134,9 @@ LRESULT CALLBACK lwjglWindowProc(HWND hWnd,
case WM_SYSCOMMAND:
{
switch (wParam) {
case SC_KEYMENU:
case SC_MOUSEMENU:
// Ignore system menu retrieval
case SC_SCREENSAVE:
case SC_MONITORPOWER:
return 0L;