Previous Document Next Document

Object Model Reference : Classes : A : AppWindow : Properties : AppWindow.WindowState


AppWindow.WindowState

Property WindowState As cdrWindowState

Description

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.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.