Skip to content

Commit 8a9d4c3

Browse files
committed
[Explorer_new]
- Hide minimized windows. svn path=/branches/GSoC_2011/NewExplorer/; revision=51884
1 parent b8567ca commit 8a9d4c3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

base/shell/explorer-new/explorer.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,19 @@ GetVersionInfoString(IN TCHAR *szFileName,
350350
return bRet;
351351
}
352352

353+
static void HideMinimizedWindows(BOOL hide)
354+
{
355+
MINIMIZEDMETRICS mm;
356+
mm.cbSize = sizeof(MINIMIZEDMETRICS);
357+
SystemParametersInfo(SPI_GETMINIMIZEDMETRICS, sizeof(MINIMIZEDMETRICS), &mm, FALSE);
358+
if(hide)
359+
mm.iArrange |= ARW_HIDE;
360+
else
361+
mm.iArrange &= ~ARW_HIDE;
362+
SystemParametersInfo(SPI_SETMINIMIZEDMETRICS, sizeof(MINIMIZEDMETRICS), &mm, FALSE);
363+
}
364+
365+
353366
INT WINAPI
354367
_tWinMain(IN HINSTANCE hInstance,
355368
IN HINSTANCE hPrevInstance,
@@ -395,7 +408,10 @@ _tWinMain(IN HINSTANCE hInstance,
395408
Tray = CreateTrayWindow();
396409

397410
if (Tray != NULL)
411+
{
398412
hShellDesktop = DesktopCreateWindow(Tray);
413+
HideMinimizedWindows(TRUE);
414+
}
399415
}
400416

401417
/* WinXP: Notify msgina to hide the welcome screen */

0 commit comments

Comments
 (0)