DocRestore

Syntax

DocRestore

Remarks

Restores all document windows from a maximized state or restores a minimized document window. Unlike DocMaximize, which maximizes the document windows if restored and restores them if maximized, DocRestore only restores document windows. It generates an error if the active document is already restored.

There is no corresponding function for DocRestore. As the example for this entry demonstrates, however, you can use the DocMaximize() function to determine whether document windows are restored.

Example

This example restores document windows if they are maximized:


If DocMaximize() <> 0 Then DocRestore

See Also

AppRestore, DocMaximize, DocMinimize