Examples:
The following VBA example begins with the application window maximized, sets the current window state to minimized, and displays a message that the window has been minimized. The main application window is then restored to a maximized state.
Sub AppWindowWindowState()
Dim state As cdrWindowState
state = cdrWindowMaximized
AppWindow.WindowState = cdrWindowMinimized
MsgBox "CorelDRAW is now minimized."
AppWindow.WindowState = state
End Sub