Partager via


IOleObjectImpl::DoVerb

Tells the control to perform one of its enumerated actions.

STDMETHOD(DoVerb)( 
   LONG iVerb, 
   LPMSG /* pMsg */, 
   IOleClientSite* pActiveSite, 
   LONG /* lindex */, 
   HWND hwndParent, 
   LPCRECT lprcPosRect  
);

Remarks

Depending on the value of iVerb, one of the ATL DoVerb helper functions is called as follows:

iVerb Value

DoVerb helper function called

OLEIVERB_DISCARDUNDOSTATE

DoVerbDiscardUndo

OLEIVERB_HIDE

DoVerbHide

OLEIVERB_INPLACEACTIVATE

DoVerbInPlaceActivate

OLEIVERB_OPEN

DoVerbOpen

OLEIVERB_PRIMARY

DoVerbPrimary

OLEIVERB_PROPERTIES

CComControlBase::DoVerbProperties

OLEIVERB_SHOW

DoVerbShow

OLEIVERB_UIACTIVATE

DoVerbUIActivate

See IOleObject::DoVerb in the Windows SDK.

Requirements

Header: atlctl.h

See Also

Reference

IOleObjectImpl Class

IOleObject::EnumVerbs