_ViewOptions enumeration (mmcobj.h)

The ViewOptions enumeration is used by the Views.Add method and specifies the visibility of the view, scope tree, and toolbars, as well as the persistence state of the view. These flags can be combined using a bitwise OR operation. This enumeration applies to the MMC 2.0 Automation Object Model.

Syntax

typedef enum ViewOptions {
  ViewOption_Default = 0,
  ViewOption_ScopeTreeHidden = 0x1,
  ViewOption_NoToolBars = 0x2,
  ViewOption_NotPersistable = 0x4,
  ViewOption_ActionPaneHidden = 0x8
} _ViewOptions, VIEWOPTIONS, *PVIEWOPTIONS;

Constants

 
ViewOption_Default
Value: 0
The view is added with default settings.
ViewOption_ScopeTreeHidden
Value: 0x1
The view is added with the scope tree pane hidden. The user will not be able to show the scope tree, as the Console Tree check box will be disabled in the Customize View dialog box.
ViewOption_NoToolBars
Value: 0x2
The view is added with toolbars hidden.
ViewOption_NotPersistable
Value: 0x4
The view is added as temporary (without persistence capability).
ViewOption_ActionPaneHidden
Value: 0x8

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header mmcobj.h

See also

Views collection

Views.Add