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
Expand Minimize


Begins the definition of your event map.

BEGIN_EVENT_MAP(theClass, baseClass )


Specifies the name of the control class whose event map this is.


Specifies the name of the base class of theClass.

In the implementation (.cpp) file that defines the member functions for your class, start the event map with the BEGIN_EVENT_MAP macro, then add macro entries for each of your events, and complete the event map with the END_EVENT_MAP macro.

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

Header: afxctl.h

Community Additions

© 2015 Microsoft