CEventFactory::CreateWindowsEvent

IEvent*CEventFactory::CreateWindowsEvent(UINTmessage, WPARAMwParam, LPARAMlParam)

Create a Windows event.

Defined in: EventFactory.h

Return Value

Pointer to generated event object or NULL if message is filtered out.

Parameters

message

Windows message ID (WM_*).

wParam

Word parameter for windows message.

lParam

Long parameter for windows message.

Comments

This function calls  FilterWindowsEvent to determine if the event should be created or not. If the message is not filtered out, then the message ID is used to determine what type of event object to create. The event object is AddRef'd and then returned to the caller.