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


Begins the definition of your event sink map.

BEGIN_EVENTSINK_MAP(theClass, baseClass )


Specifies the name of the control class whose event sink 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 sink map with the BEGIN_EVENTSINK_MAP macro, then add macro entries for each event to be notified of, and complete the event sink map with the END_EVENTSINK_MAP macro.

For more information on event sink maps and OLE control containers, see the article ActiveX Control Containers.

Header: afxdisp.h