MvcViewport::GetEventFactory

CEventFactory*MvcViewport::GetEventFactory(void)

Returns a pointer to the event factory for this viewport.

Defined in: MvcViewport.cpp

Return Value

Pointer to event factory object.

Comments

The base class implementation of this function returns NULL. Without an event factory, event objects are not created and routed to event listeners. The viewport still passes messages to the controller, which are dispatched to member functions through the MFC message map. Returning NULL as the default preserves backward compatibility without introducing any additional overhead. In order to use the new OO event architecture, derived classes must override this function and return a pointer to an event factory object.