Compartilhar via


COleControl::OnDoVerb

Called by the framework when the container calls the IOleObject::DoVerb member function.

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

Parameters

  • iVerb
    The index of the control verb to be invoked.

  • lpMsg
    A pointer to the Windows message that caused the verb to be invoked.

  • hWndParent
    The handle to the parent window of the control. If the execution of the verb creates a window (or windows), hWndParent should be used as the parent.

  • lpRect
    A pointer to a RECT structure into which the coordinates of the control, relative to the container, will be copied.

Return Value

Nonzero if call was successful; otherwise 0.

Remarks

The default implementation uses the ON_OLEVERB and ON_STDOLEVERB message map entries to determine the proper function to invoke.

Override this function to change the default handling of verb.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

ON_OLEVERB

ON_STDOLEVERB

COleControl::OnEnumVerbs