Edit

Share via


Implementing Standard Form Verbs

Applies to: Outlook 2013 | Outlook 2016

MAPI defines a set of standard verbs, or actions taken when a user makes a menu selection or clicks a button, that all form viewers should support. Each verb has a constant associated with it for identification, defined in the EXCHFORM.H header file. The following table lists the standard form verbs and their associated constants:

Verb Value
Open
EXCHIVERB_OPEN
Reply
EXCHIVERB_REPLYTOSENDER
Reply to All
EXCHIVERB_REPLYTOALL
Forward
EXCHIVERB_FORWARD
Print
EXCHIVERB_PRINT
Save As
EXCHIVERB_SAVEAS
Reply to Folder
EXCHIVERB_REPLYTOFOLDER

When a user chooses a verb, pass its constant in a call to the form's IMAPIForm::DoVerb method to perform its corresponding action.

In addition to accessing verbs through your form viewer, users can sometimes access verbs directly from the form. For example, some form objects allow the user to invoke the Print verb by right-clicking on the form and choosing Print from a context-sensitive menu.