Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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