CEventFactory::CreateCommandEvent

IEvent* CEventFactory::CreateCommandEvent(UINT nID, int nCode)

Create a Windows command event.

Defined in: EventFactory.h

Return Value

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

Parameters

nID

Command ID.

nCode

Notification code.

Comments

This function calls FilterCommandEvent to determine if the event should be created or not. If the command is not filtered out, then a CCommandEvent object is created. The command event object is AddRef'd and then returned to the caller.