Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
TRY
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

EVENT_DELEGATE_ENTRY 

Creates an entry in the delegate map.


EVENT_DELEGATE_ENTRY(
      MEMBER,
      ARG0,
      ARG1
);

Parameters

MEMBER

The event handler method to be attached to the control.

ARG0

The first argument of the managed event handler method, such as Object^.

ARG1

The second argument of the managed event handler method, such as EventArgs^.

Each entry in the delegate map corresponds to a managed event handler delegate created by MAKE_DELEGATE.

The following code example shows how to use EVENT_DELEGATE_ENTRY to create an entry in the delegate map for the OnClick event handler; also see the code example in MAKE_DELEGATE. For more information, see How to: Sink Windows Forms Events from Native C++ Classes.

BEGIN_DELEGATE_MAP( CMyDialog )
   EVENT_DELEGATE_ENTRY( OnClick, Object^, EventArgs^ )
END_DELEGATE_MAP()

Header: msclr\event.h

Community Additions

ADD
Show:
© 2015 Microsoft