Méthode IShellDispatch. CascadeWindows
Cascade toutes les fenêtres sur le 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 des fenêtres en cascade.
Syntaxe
IShellDispatch.CascadeWindows()
IShellDispatch.CascadeWindows()
Paramètres
Cette méthode n’a aucun paramètre.
Valeur de retour
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 par le biais de la méthode Shell. CascadeWindows .
Exemples
les exemples suivants illustrent l’utilisation de CascadeWindows dans JScript, VBScript et Visual Basic.
JScript :
<script language="JScript">
function fnShellCascadeWindowsJ()
{
var objShell = new ActiveXObject("shell.application");
objshell.CascadeWindows();
}
</script>
VBScript
<script language="VBScript">
function fnShellCascadeWindowsVB()
dim objShell
set objShell = CreateObject("shell.application")
objshell.CascadeWindows
set objShell = nothing
end function
</script>
Visual Basic :
Private Sub fnShellCascadeWindowsVB()
Dim objShell As Shell
Set objShell = New Shell
objshell.CascadeWindows
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 |
|