Shell. TrayProperties, méthode
Affiche la boîte de dialogue Propriétés de la barre des tâches et du menu Démarrer . Cette méthode a le même effet que lorsque vous cliquez avec le bouton droit sur la barre des tâches et sélectionnez 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. l’utilisation appropriée 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 Professional, Windows XP [ desktop apps uniquement] |
| Serveur minimal pris en charge |
Windows 2000 Server - [Applications de bureau uniquement] |
| En-tête |
|
| MIDL |
|
| DLL |
|