Freigeben über


CCmdTarget::DoOleVerb

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

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

Parameters

  • 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.

Return Value

TRUE if successful, otherwise FALSE.

Remarks

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

Requirements

Header: afxwin.h

See Also

Concepts

CCmdTarget Class

CCmdTarget Members

Hierarchy Chart