Author: agreen
Date: Tue May 24 14:04:50 2011
New Revision: 51884
URL:
http://svn.reactos.org/svn/reactos?rev=51884&view=rev
Log:
[Explorer_new]
- Hide minimized windows.
Modified:
branches/GSoC_2011/NewExplorer/base/shell/explorer-new/explorer.c
Modified: branches/GSoC_2011/NewExplorer/base/shell/explorer-new/explorer.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/NewExplorer/base/shel…
==============================================================================
--- branches/GSoC_2011/NewExplorer/base/shell/explorer-new/explorer.c [iso-8859-1]
(original)
+++ branches/GSoC_2011/NewExplorer/base/shell/explorer-new/explorer.c [iso-8859-1] Tue May
24 14:04:50 2011
@@ -350,6 +350,19 @@
return bRet;
}
+static void HideMinimizedWindows(BOOL hide)
+{
+ MINIMIZEDMETRICS mm;
+ mm.cbSize = sizeof(MINIMIZEDMETRICS);
+ SystemParametersInfo(SPI_GETMINIMIZEDMETRICS, sizeof(MINIMIZEDMETRICS), &mm,
FALSE);
+ if(hide)
+ mm.iArrange |= ARW_HIDE;
+ else
+ mm.iArrange &= ~ARW_HIDE;
+ SystemParametersInfo(SPI_SETMINIMIZEDMETRICS, sizeof(MINIMIZEDMETRICS), &mm,
FALSE);
+}
+
+
INT WINAPI
_tWinMain(IN HINSTANCE hInstance,
IN HINSTANCE hPrevInstance,
@@ -395,7 +408,10 @@
Tray = CreateTrayWindow();
if (Tray != NULL)
+ {
hShellDesktop = DesktopCreateWindow(Tray);
+ HideMinimizedWindows(TRUE);
+ }
}
/* WinXP: Notify msgina to hide the welcome screen */