Méthode Shell.TrayProperties

Affiche la barre des tâches et la boîte de dialogue Propriétés du menu Démarrer . 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 Propriétés.

Syntaxe

iRetVal = Shell.TrayProperties()

Shell.TrayProperties() As Integer

Paramètres

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

Exemples

L’exemple suivant montre TrayProperties en cours d’utilisation. Une utilisation correcte est indiquée pour JScript, VBScript et Visual Basic.

Jscript:

<script language="JScript">
    function fnShellTrayPropertiesJ()
    {
        var objShell = new ActiveXObject("shell.application");
        
        objShell.TrayProperties();
    }
</script>

Vbscript:

<script language="VBScript">
    function fnShellTrayPropertiesVB()
        dim objShell
        
        set objShell = CreateObject("shell.application")
        objShell.TrayProperties

        set objShell = nothing
    end function
 </script>

Visual Basic :

Private Sub fnShellTrayPropertiesVB()
    Dim objShell As Shell
    
    Set objShell = New Shell
    objShell.TrayProperties

    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)