This topic has not yet been rated - Rate this topic

EXPCMDSTATE enumeration

Applies to: desktop apps only

EXPCMDSTATE values represent the command state of a Shell item.

Syntax

typedef enum _EXPCMDSTATE {
  ECS_ENABLED      = 0x00,
  ECS_DISABLED     = 0x01,
  ECS_HIDDEN       = 0x02,
  ECS_CHECKBOX     = 0x04,
  ECS_CHECKED      = 0x08,
  ECS_RADIOCHECK   = 0x10 
} EXPCMDSTATE;

Constants

ECS_ENABLED

The item is enabled.

ECS_DISABLED

The item is unavailable. It might be displayed to the user as a dimmed, inaccessible item.

ECS_HIDDEN

The item is hidden.

ECS_CHECKBOX

The item is displayed with a check box and that check box is not checked.

ECS_CHECKED

The item is displayed with a check box and that check box is checked. ECS_CHECKED is always returned with ECS_CHECKBOX.

ECS_RADIOCHECK

Windows 7 and later. The item is one of a group of mutually exclusive options selected through a radio button. ECS_RADIOCHECK does not imply that the item is the selected option, though it might be.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Shobjidl.h

IDL

Shobjidl.idl

See also

IExplorerCommand::GetState
IExplorerCommandState::GetState
Button Types

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
returning ECS_HIDDEN does not hide the menu
instead it results in it being disabled.
there is not user option relating to ECS_HIDDEN.
"ECS_HIDDEN The item is hidden. It is not shown to the user unless that user has specifically chosen to display hidden items in their folder view options." the last sentence is in error. there is no such user option.