mirror of
https://github.com/reactos/reactos.git
synced 2024-11-02 12:53:33 +00:00
- clean up GuiHandleSysMenuCommand a bit
svn path=/trunk/; revision=26935
This commit is contained in:
parent
671ab7b5b1
commit
3804dd3952
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue