COleControl::OnEdit

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

Return Value

Nonzero if the call is successful; otherwise 0.

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.

Remarks

Call this function to cause the control to be UI activated. 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)

COleControl OverviewClass MembersHierarchy Chart