Verb
Specifies the
verbs to be registered for an application.
Registry Entry
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID
\Verb
\1 = <verb1>
\2 = <verb2>
\3 =
Value Entries
<verb1>,
<verb2>, ...
Each value
specifies a verb, and its associated menu and verb flags. Each verb is
specified by its own NamedValue / Value pair, as in verb
number = <name, menu flag, verb flag> For
example:
\Verb
0 = &Edit, 0, 2 // primary verb; on menu, possibly dirties
object,
1 = &Play, 0, 3 // other verb; on menu; leaves object clean
-3 = Hide, 0, 1
// pseudo verb, hides window; not on menu, opt.
-2 = Open, 0, 1 // pseudo verb, opens in sep. window; not
on menu, opt.
-1 = Show, 0, 1 // pseudo verb, show in preferred state; not
on menu, opt.
See IOleObject::DoVerb
Remarks
Verbs must be
numbered consecutively. The first value after the verb string describes how the
verb is appended by an AppendMenu
The second
value indicates whether the verb will dirty the object. It also indicates
whether the verb should appear in the menu, as defined by OLEVERBATTRIB
For still
more information, see IOleObject::EnumVerbs
Following are
two example entries:
Verb 0:
Edit , MF_UNCHECKED | MF_ENABLED, no OLEVERATTRIB flags:
HKEY_CLASSES_ROOT\CLSID\{ 00000402-0000-0000-C000-000000000046}
\Verb\0 =
&Edit,0,0
Verb 1:
Open , MF_UNCHECKED | MF_ENABLED, no OLEVERATTRIB flags:
HKEY_CLASSES_ROOT\CLSID\{ 00000402-0000-0000-C000-000000000046}
\Verb\1 =
&Open,0,0
See Also