Adding an Event
From Class View, you can add an event using the Add Event Wizard only to the control class in your MFC ActiveX control project. If you want to add an event to another type of project, use the Events button in the Properties window.
To add an event to your MFC ActiveX control project
In Class View, expand the project node to display the classes in the project.
Right-click the project's control class.
On the shortcut menu, click Add, and then click Add Event to display the Add Event Wizard.
Provide the event information in the appropriate wizard boxes.
Click Finish to add the event to the project.
See Also
Tasks
Reference
Navigating the Class Structure