![]() |
![]() |
Window.WindowState
Property WindowState As cdrWindowState
Member of Window
The WindowState property returns or sets 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 code 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 2007 Corel Corporation. All rights reserved.