mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
- missed this file.
svn path=/trunk/; revision=54638
This commit is contained in:
parent
527f83f57d
commit
388f6d13c8
1 changed files with 16 additions and 22 deletions
|
@ -745,7 +745,7 @@ LRESULT WINAPI DoAppSwitch( WPARAM wParam, LPARAM lParam);
|
||||||
LRESULT
|
LRESULT
|
||||||
DefWndHandleSysCommand(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
DefWndHandleSysCommand(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
WINDOWPLACEMENT wp;
|
// WINDOWPLACEMENT wp;
|
||||||
POINT Pt;
|
POINT Pt;
|
||||||
LRESULT lResult;
|
LRESULT lResult;
|
||||||
|
|
||||||
|
@ -763,30 +763,24 @@ DefWndHandleSysCommand(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
case SC_SIZE:
|
case SC_SIZE:
|
||||||
DefWndDoSizeMove(hWnd, wParam);
|
DefWndDoSizeMove(hWnd, wParam);
|
||||||
break;
|
break;
|
||||||
case SC_MINIMIZE:
|
case SC_MINIMIZE:
|
||||||
wp.length = sizeof(WINDOWPLACEMENT);
|
if (hWnd == GetActiveWindow())
|
||||||
if(GetWindowPlacement(hWnd, &wp))
|
ShowOwnedPopups(hWnd,FALSE);
|
||||||
{
|
ShowWindow( hWnd, SW_MINIMIZE );
|
||||||
wp.showCmd = SW_MINIMIZE;
|
|
||||||
SetWindowPlacement(hWnd, &wp);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case SC_MAXIMIZE:
|
|
||||||
wp.length = sizeof(WINDOWPLACEMENT);
|
case SC_MAXIMIZE:
|
||||||
if(GetWindowPlacement(hWnd, &wp))
|
if (IsIconic(hWnd) && hWnd == GetActiveWindow())
|
||||||
{
|
ShowOwnedPopups(hWnd,TRUE);
|
||||||
wp.showCmd = SW_MAXIMIZE;
|
ShowWindow( hWnd, SW_MAXIMIZE );
|
||||||
SetWindowPlacement(hWnd, &wp);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case SC_RESTORE:
|
|
||||||
wp.length = sizeof(WINDOWPLACEMENT);
|
case SC_RESTORE:
|
||||||
if(GetWindowPlacement(hWnd, &wp))
|
if (IsIconic(hWnd) && hWnd == GetActiveWindow())
|
||||||
{
|
ShowOwnedPopups(hWnd,TRUE);
|
||||||
wp.showCmd = SW_RESTORE;
|
ShowWindow( hWnd, SW_RESTORE );
|
||||||
SetWindowPlacement(hWnd, &wp);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SC_CLOSE:
|
case SC_CLOSE:
|
||||||
return SendMessageW(hWnd, WM_CLOSE, 0, 0);
|
return SendMessageW(hWnd, WM_CLOSE, 0, 0);
|
||||||
// case SC_DEFAULT:
|
// case SC_DEFAULT:
|
||||||
|
|
Loading…
Reference in a new issue