Condividi tramite


COleControlSite::DoVerb

Executes the specified verb.

virtual HRESULT DoVerb(
   LONG nVerb,
   LPMSG lpMsg = NULL 
);

Parameters

  • nVerb
    Specifies the verb to execute. It can include one of the following:

    Value

    Meaning

    Symbol

    0

    Primary verb

    OLEIVERB_PRIMARY

    -1

    Secondary verb

    (None)

    1

    Displays the object for editing.

    OLEIVERB_SHOW

    -2

    Edits the item in a separate window.

    OLEIVERB_OPEN

    -3

    Hides the object.

    OLEIVERB_HIDE

    -4

    Activates a control in-place.

    OLEIVERB_UIACTIVATE

    -5

    Activates a control in-place, without additional user interface elements.

    OLEIVERB_INPLACEACTIVATE

    -7

    Display the control's properties.

    OLEIVERB_PROPERTIES

  • lpMsg
    Pointer to the message that caused the item to be activated.

Return Value

A standard HRESULT value.

Remarks

This function directly calls through the control's IOleObject interface to execute the specified verb. If an exception is thrown as a result of this function call, an HRESULT error code is returned.

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

Requirements

Header: afxocc.h

See Also

Reference

COleControlSite Class

Hierarchy Chart

Other Resources

COleControlSite Members