Udostępnij za pośrednictwem


COleServerItem::OnDoVerb

Called by the framework to execute the specified verb.

virtual void OnDoVerb( 
   LONG iVerb  
);

Parameters

  • iVerb
    Specifies the verb to execute. It can be any one of the following:

    Value

    Meaning

    Symbol

    0

    Primary verb

    OLEIVERB_PRIMARY

    1

    Secondary verb

    (None)

    – 1

    Display item for editing

    OLEIVERB_SHOW

    – 2

    Edit item in separate window

    OLEIVERB_OPEN

    – 3

    Hide item

    OLEIVERB_HIDE

    The –1 value is typically an alias for another verb. If open editing is not supported, –2 has the same effect as –1. For additional values, see IOleObject::DoVerb in the Windows SDK.

Remarks

If the container application was written with the Microsoft Foundation Class Library, this function is called when the COleClientItem::Activate member function of the corresponding COleClientItem object is called. The default implementation calls the OnShow member function if the primary verb or OLEIVERB_SHOW is specified, OnOpen if the secondary verb or OLEIVERB_OPEN is specified, and OnHide if OLEIVERB_HIDE is specified. The default implementation calls OnShow if iVerb is not one of the verbs listed above.

Override this function if your primary verb does not show the item. For example, if the item is a sound recording and its primary verb is Play, you would not have to display the server application to play the item.

For more information, see IOleObject::DoVerb in the Windows SDK.

Requirements

Header: afxole.h

See Also

Reference

COleServerItem Class

Hierarchy Chart

COleClientItem::Activate

COleServerItem::OnShow

COleServerItem::OnOpen

COleServerItem::OnHide

Other Resources

COleServerItem Members