COleControl::OnEdit
TOC
Collapse the table of content
Expand the table of content

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)

Requirements

Header: afxctl.h

Show:
© 2016 Microsoft