Freigeben über


COleControl::OnEdit

Causes the control to be UI activated.

virtual BOOL OnEdit(
   LPMSG lpMsg,
   HWND hWndParent,
   LPCRECT lpRect 
);

Parameters

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

  • hWndParent
    A handle to the parent window of the control.

  • lpRect
    A pointer to the rectangle used by the control in the container.

Return Value

Nonzero if the call is successful; otherwise 0.

Remarks

This has the same effect as invoking the control's OLEIVERB_UIACTIVATE verb.

This function is typically used as the handler function for an ON_OLEVERB message map entry. This makes an "Edit" verb available on the control's "Object" menu. For example:

   ON_OLEVERB(AFX_IDS_VERB_EDIT, OnEdit)

Requirements

Header: afxctl.h

See Also

Concepts

COleControl Class

COleControl Members

Hierarchy Chart