Shell.MinimizeAll method
Applies to: desktop apps only
Minimizes all of the windows on the desktop. This method has the same effect as right-clicking the taskbar and selecting Minimize All Windows on older systems or clicking the Show Desktop icon in the Quick Launch area of the taskbar in Windows 2000 or Windows XP.
Syntax
iRetVal = Shell.MinimizeAll()
Parameters
This method has no parameters.
Examples
The following example shows MinimizeAll in use. Proper usage is shown for JScript, VBScript, and Visual Basic.
JScript:
<script language="JScript">
function fnShellMinimizeAllJ()
{
var objShell = new ActiveXObject("shell.application");
objshell.MinimizeAll();
}
</script>
VBScript:
<script language="VBScript"> function fnShellMinimizeAllVB() dim objShell set objShell = CreateObject("shell.application") objshell.MinimizeAll set objShell = nothing end function </script>
Visual Basic:
Private Sub fnShellMinimizeAllVB() Dim objShell As Shell Set objShell = New Shell objshell.MinimizeAll Set objShell = Nothing End Sub
Requirements
|
Minimum supported client | Windows 2000 Professional, Windows XP |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 3/7/2012