OLECMDEXECOPT enumeration (docobj.h)

Specifies command execution options.

Syntax

typedef enum OLECMDEXECOPT {
  OLECMDEXECOPT_DODEFAULT = 0,
  OLECMDEXECOPT_PROMPTUSER = 1,
  OLECMDEXECOPT_DONTPROMPTUSER = 2,
  OLECMDEXECOPT_SHOWHELP = 3
} ;

Constants

 
OLECMDEXECOPT_DODEFAULT
Value: 0
Prompt the user for input or not, whichever is the default behavior.
OLECMDEXECOPT_PROMPTUSER
Value: 1
Execute the command after obtaining user input.
OLECMDEXECOPT_DONTPROMPTUSER
Value: 2
Execute the command without prompting the user. For example, clicking the Print toolbar button causes a document to be immediately printed without user input.
OLECMDEXECOPT_SHOWHELP
Value: 3
Show help for the corresponding command, but do not execute.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header docobj.h

See also

IOleCommandTarget::Exec