Поделиться через


CCmdTarget::DoOleVerb

Causes an action specified by an OLE verb to be performed.

BOOL DoOleVerb(
   LONG iVerb,
   LPMSG lpMsg,
   HWND hWndParent,
   LPCRECT lpRect 
);

Параметры

  • iVerb
    Numerical identifier of the verb.

  • lpMsg
    Pointer to the MSG structure describing the event (such as a double-click) that invoked the verb.

  • hWndParent
    Handle of the document window containing the object.

  • lpRect
    Pointer to the RECT structure containing the coordinates, in pixels, that define an object's bounding rectangle in hwndParent.

Возвращаемое значение

TRUE if successful, otherwise FALSE.

Заметки

This member function is basically an implementation of IOleObject::DoVerb. The possible actions are enumerated by CCmdTarget::EnumOleVerbs.

Требования

Header: afxwin.h

См. также

Основные понятия

CCmdTarget Class

CCmdTarget Members

Hierarchy Chart