1. Computing

How to Minimize ALL the windows on the Desktop

From , former About.com Guide

To minimize all the windows on the Desktop manually, you need to right-click the taskbar and select "Minimize All Windows" (Win 98) ; another solution requires a click to the "Show Desktop" icon in the "Quick Launch" area of the taskbar (Windows 2000 or Windows XP)
Finally you can press the Windows logo key and the M key simultaneously. Unfortunately, you can't programmatically send this key combination to the Windows shell or any other application.

What you can DO from Delphi code, is to use the Shell.Application object.

~~~~~~~~~~~~~~~~~~~~~~~~~
uses ShlObj;

procedure Shell_MinimizeAll;
var
   Shell : OleVariant;
begin
   Shell := CreateOleObject('Shell.Application') ;
   Shell.MinimizeAll;
end;
~~~~~~~~~~~~~~~~~~~~~~~~~
The Shell_MinimizeAll minimizes all of the windows on the desktop.

Delphi tips navigator:
» How to add the "Select All (CTRL+A)" functionality to TMemo/TDBMemo
« Creating thumbnail images (Delphi for .Net)

©2013 About.com. All rights reserved.