共用方式為


IOleObjectImpl::DoVerb

告知控制項執行其所列舉的其中一個動作。

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

備註

根據 iVerb的值,其中一個 ATL DoVerb Helper 函式呼叫如下所示:

iVerb

DoVerb 所呼叫的 Helper 函式

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

請參閱在 Windows SDK的 IOleObject::DoVerb

需求

Header: atlctl.h

請參閱

參考

IOleObjectImpl Class

IOleObject::EnumVerbs