CEventFactory Class
class CEventFactory
An event factory creates events based on various types of input parameters and filter criterion. It consists of filter methods and create methods for different categories of events. It translates Windows messages into event objects that can be passed to event routers and event listeners. It can also be used to generate custom events. This class serves as a base class for derived event factories, which can provide their own custom filtering and creation methods.Defined in: EventFactory.h
Class Members
inline virtual bool FilterWindowsEvent(UINT message, WPARAM wParam, LPARAM lParam)
Filter out unwanted Windows messages.
inline virtual IEvent* CreateWindowsEvent(UINT message, WPARAM wParam, LPARAM lParam)
Create a Windows event.
inline virtual bool FilterCommandEvent(UINT nID, int nCode)
Filter out unwanted Windows command messages.
inline virtual IEvent* CreateCommandEvent(UINT nID, int nCode)
Create a Windows command event.
inline virtual IEvent* CreateCommandQueryEvent(UINT nID)
Create a command query event.