File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -350,6 +350,19 @@ GetVersionInfoString(IN TCHAR *szFileName,
350
350
return bRet ;
351
351
}
352
352
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
+
353
366
INT WINAPI
354
367
_tWinMain (IN HINSTANCE hInstance ,
355
368
IN HINSTANCE hPrevInstance ,
@@ -395,7 +408,10 @@ _tWinMain(IN HINSTANCE hInstance,
395
408
Tray = CreateTrayWindow ();
396
409
397
410
if (Tray != NULL )
411
+ {
398
412
hShellDesktop = DesktopCreateWindow (Tray );
413
+ HideMinimizedWindows (TRUE);
414
+ }
399
415
}
400
416
401
417
/* WinXP: Notify msgina to hide the welcome screen */
You can’t perform that action at this time.
0 commit comments