Attaches an event handler to a managed control.
The type of the managed event handler delegate, such as.
The name of the event handler method to be attached to the control.
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.
CWinFormsControl<MyControl> m_MyControl; // ... m_MyControl.GetControl()->Click += MAKE_DELEGATE( System::EventHandler, OnClick );