virtual BOOL OnDoVerb( LONG iVerb, LPMSG lpMsg, HWND hWndParent, LPCRECT lpRect );
Return Value
Nonzero if call was successful; otherwise 0.
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.
Remarks
Called by the framework when the container calls the IOleObject::DoVerb member function. 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.
COleControl Overview | Class Members | Hierarchy Chart
See Also ON_OLEVERB, ON_STDOLEVERB, COleControl::OnEnumVerbs