Expand Minimize

COleControl::OnEdit

Causes the control to be UI activated.

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

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.

Nonzero if the call is successful; otherwise 0.

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)

Header: afxctl.h

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft