- clean up GuiHandleSysMenuCommand a bit

svn path=/trunk/; revision=26935
This commit is contained in:
Johannes Anderwald 2007-05-29 11:23:31 +00:00
parent 671ab7b5b1
commit 3804dd3952

View file

@ -1485,10 +1485,10 @@ GuiConsoleShowConsoleProperties(HWND hWnd, BOOL Defaults, PGUI_CONSOLE_DATA GuiD
CPLFunc(hWnd, CPL_DBLCLK, (LPARAM)&SharedInfo, Defaults); CPLFunc(hWnd, CPL_DBLCLK, (LPARAM)&SharedInfo, Defaults);
} }
static BOOL FASTCALL static LRESULT FASTCALL
GuiConsoleHandleSysMenuCommand(HWND hWnd, WPARAM wParam, PGUI_CONSOLE_DATA GuiData) GuiConsoleHandleSysMenuCommand(HWND hWnd, WPARAM wParam, LPARAM lParam, PGUI_CONSOLE_DATA GuiData)
{ {
BOOL Ret = TRUE; LRESULT Ret = TRUE;
switch(wParam) switch(wParam)
{ {
@ -1509,10 +1509,9 @@ GuiConsoleHandleSysMenuCommand(HWND hWnd, WPARAM wParam, PGUI_CONSOLE_DATA GuiDa
break; break;
default: default:
Ret = FALSE; Ret = DefWindowProcW(hWnd, WM_SYSCOMMAND, wParam, lParam);
break; break;
} }
return Ret; return Ret;
} }
@ -1709,8 +1708,7 @@ GuiConsoleWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
GuiConsoleMouseMove(hWnd, wParam, lParam); GuiConsoleMouseMove(hWnd, wParam, lParam);
break; break;
case WM_SYSCOMMAND: case WM_SYSCOMMAND:
if (!GuiConsoleHandleSysMenuCommand(hWnd, wParam, GuiData)) Result = GuiConsoleHandleSysMenuCommand(hWnd, wParam, lParam, GuiData);
Result = DefWindowProcW(hWnd, msg, wParam, lParam);
break; break;
case WM_SIZE: case WM_SIZE:
GuiConsoleResize(hWnd, wParam, lParam); GuiConsoleResize(hWnd, wParam, lParam);