Méthode IShellDispatch.MinimizeAll

Réduit toutes les fenêtres du bureau. Cette méthode a le même effet que de cliquer avec le bouton droit sur la barre des tâches et de sélectionner Réduire toutes les fenêtres sur les systèmes plus anciens ou de cliquer sur l’icône Afficher le Bureau dans la barre des tâches.

Syntaxe

IShellDispatch.MinimizeAll()

IShellDispatch.MinimizeAll()

Paramètres

Cette méthode n’a aucun paramètre.

Valeur retournée

JScript

Cette méthode ne retourne pas de valeur.

VB

Cette méthode ne retourne pas de valeur.

Notes

Cette méthode est implémentée et accessible via la méthode Shell.MinimizeAll .

Exemples

Les exemples suivants montrent l’utilisation de MinimizeAll pour JScript, VBScript et 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

Spécifications

Condition requise Valeur
Client minimal pris en charge
Windows 2000 Professionnel, Windows XP [applications de bureau uniquement]
Serveur minimal pris en charge
Windows 2000 Server [applications de bureau uniquement]
En-tête
Shldisp.h
IDL
Shldisp.idl
DLL
Shell32.dll (version 4.71 ou ultérieure)

Voir aussi

IShellDispatch

UndoMinimizeALL