Udostępnij za pośrednictwem


Event Sink Maps

When an embedded OLE control fires an event, the control's container receives the event using a mechanism, called an "event sink map," supplied by MFC. This event sink map designates handler functions for each specific event, as well as parameters of those events. For more information on event sink maps, see the article ActiveX Control Containers.

Event Sink Maps

BEGIN_EVENTSINK_MAP

Starts the definition of an event sink map.

DECLARE_EVENTSINK_MAP

Declares an event sink map.

END_EVENTSINK_MAP

Ends the definition of an event sink map.

ON_EVENT

Defines an event handler for a specific event.

ON_EVENT_RANGE

Defines an event handler for a specific event fired from a set of OLE controls.

ON_EVENT_REFLECT

Receives events fired by the control before they are handled by the control's container.

ON_PROPNOTIFY

Defines a handler for handling property notifications from an OLE control.

ON_PROPNOTIFY_RANGE

Defines a handler for handling property notifications from a set of OLE controls.

ON_PROPNOTIFY_REFLECT

Receives property notifications sent by the control before they are handled by the control's container.

See Also

Concepts

MFC Macros and Globals