1. Technology

How to Minimize ALL the windows on the Desktop


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;
   Shell : OleVariant;
   Shell := CreateOleObject('Shell.Application') ;
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)

Related Video
How to Minimize Hips
How to Minimize a Large Bust

©2014 About.com. All rights reserved.