MAKE_DELEGATE
Attaches an event handler to a managed control.
MAKE_DELEGATE( DELEGATE, MEMBER );
The following code example shows how to call MAKE_DELEGATE to attach an OnClick event handler to an MFC control MyControl. For a broader explanation of how this macro works in an MFC application, see How to: Sink Windows Forms Events from Native C++ Classes.