Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windows Shell
Shell Reference
Shell
Methods
 UndoMinimizeALL Method
UndoMinimizeALL Method

Restores all desktop windows to the same state they were in before the last MinimizeAll command. This method has the same effect as right-clicking the taskbar and selecting Undo Minimize All Windows on older systems or a second clicking of the Show Desktop icon in the Quick Launch area of the taskbar in Windows 2000 or Windows XP.

Syntax

Shell.UndoMinimizeALL()

Return Value

No return value.

Examples

The following example shows UndoMinimizeALL in use. Proper usage is shown for Microsoft JScript, Microsoft Visual Basic Scripting Edition (VBScript), and Visual Basic.

JScript:

<script language="JScript">
    function fnShellUndoMinimizeALLJ()
    {
        var objShell = new ActiveXObject("Shell.Application");
        
        objShell.UndoMinimizeALL();
    }
</script>

VBScript:

<script language="VBScript">
    function fnShellUndoMinimizeALLVB()
        dim objShell
        
        set objShell = CreateObject("Shell.Application")
        objShell.UndoMinimizeALL

        set objShell = nothing
    end function
 </script>

Visual Basic:

Private Sub fnShellUndoMinimizeAllVB()
    Dim objShell As Shell
    
    Set objShell = New Shell
    objShell.UndoMinimizeALL

    Set objShell = Nothing
End Sub

Applies To

Shell
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Extended funtionality for this method under Vista      Keith Miller MVP   |   Edit   |   Show History

Vista Update: From preliminary testing, it looks like the UndoMinimizeALL method has actually taken on the function of, for lack of a better name, UndoLastWindowArrange :) -- the script equivalent of whatever 'Undo' command (if any) is available from the Taskbar context menu at any given time.

Note that 'Minimize All' is no longer a context menu option, but if you execute 'Minimize All' via the Winkey+M combination, 'Undo Minimize All' becomes available.

Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker