Object Model Reference : Classes : A : AppWindow : Properties : AppWindow.WindowState |
Property WindowState As cdrWindowState
Member of AppWindow
The WindowState property returns or specifies the current window state of the CorelDRAW main application window. This window can be minimized, maximized or in a normal state.
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 |
Copyright 2013 Corel Corporation. All rights reserved.