Object Model Reference : Classes : W : Window : Properties : Window.WindowState |
Property WindowState As cdrWindowState
Member of Window
The WindowState property returns or specifies the state of a window. A window can be minimized or maximized, or it can be in a normal state. It can also be restored to its previous state.
The WindowState property returns a value of cdrWindowState.
The following VBA example displays the active windows state, maximizes the window, and displays the new state.
Sub Test() |
MsgBox "The current window state is: " & ActiveWindow.WindowState |
ActiveWindow.WindowState = cdrWindowMaximized |
MsgBox "The current window state is: " & ActiveWindow.WindowState |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.