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

请参见

参考

、选件类

IOleObject::EnumVerbs