Author: fireball Date: Wed Jan 19 21:42:46 2011 New Revision: 50446
URL: http://svn.reactos.org/svn/reactos?rev=50446&view=rev Log: - Maarten Kroese: Properly hide minimized top level windows. Fixes bug 5207.
Modified: branches/arwinss/reactos/dll/win32/user32/winpos.c
Modified: branches/arwinss/reactos/dll/win32/user32/winpos.c URL: http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/dll/win32/user32... ============================================================================== --- branches/arwinss/reactos/dll/win32/user32/winpos.c [iso-8859-1] (original) +++ branches/arwinss/reactos/dll/win32/user32/winpos.c [iso-8859-1] Wed Jan 19 21:42:46 2011 @@ -822,6 +822,13 @@ int xspacing, yspacing;
parent = GetAncestor( hwnd, GA_PARENT ); + if (parent == GetDesktopWindow()) + { + /* ReactOS doesn't support iconic minimize to desktop */ + pt.x = pt.y = -32000; + return pt; + } + GetClientRect( parent, &rectParent ); if ((pt.x >= rectParent.left) && (pt.x + GetSystemMetrics(SM_CXICON) < rectParent.right) && (pt.y >= rectParent.top) && (pt.y + GetSystemMetrics(SM_CYICON) < rectParent.bottom))