We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.


Each COleControl-derived class in your program can provide an event map to specify the events your control will fire.


Use the DECLARE_EVENT_MAP macro at the end of your class declaration. Then, in the .cpp file that defines the member functions for the class, use the BEGIN_EVENT_MAP macro, macro entries for each of the control's events, and the END_EVENT_MAP macro to declare the end of the event list.

For more information on event maps, see the article ActiveX Controls: Events.

Header: afxctl.h