WindowState property
Gets or sets the state of a window.
Version added
2000
Syntax
| |
| |
intRet |
Long. A constant that identifies the state of the window. |
object |
Required. An expression that returns a Window object. |
intExpression |
Required Long. The new state of the window. |
Remarks
The values of intRet and intExpression can be a combination of the following constants, which are declared in the Visio type library in VisWindowStates.
Note The varFlags parameter to the Add method for the Windows collection can be composed of the various bits of VisWindowStates.
Constant |
Value |
visWSNone |
&H0 |
visWSDockedLeft |
&H1 |
visWSDockedTop |
&H2 |
visWSDockedRight |
&H4 |
visWSDockedBottom |
&H8 |
visWSFloating |
&H10 |
visWSAnchorLeft |
&H20 |
visWSAnchorTop |
&H40 |
visWSAnchorRight |
&H80 |
visWSAnchorBottom |
&H100 |
visWSAnchorAutoHide |
&H200 |
visWSVisible |
&H8000000 |
visWSMinimized |
&H10000000 |
visWSMinimized |
&H20000000 |
visWSMaximized |
&H40000000 |
If you specify conflicting bits (such as both visWSMaximized and visWSMinimized), only one bit is used.
The visWSVisible flag is ignored when setting the state of a window with the WindowState property. It is used in calls to the Add method for the Windows collection. Use the Visible property of the window to show or hide it. The visWSVisible flag is available only when this property is read.