36 CWnd* thisWindow =
dynamic_cast<CWnd*
>( this );
37 UINT windowsEventId =
WM_EVENT( aEventId );
39 ASSERT( thisWindow != NULL );
42 if( IsWindow( thisWindow->m_hWnd ) )
46 thisWindow->SendMessage( windowsEventId, (WPARAM)aEventData, (LPARAM)aEventDataPtr );
50 thisWindow->PostMessage( windowsEventId, (WPARAM)aEventData, (LPARAM)aEventDataPtr );
void onEvent(EventId aEventId, uint32 aEventData, void *aEventDataPtr, BOOL handleNow)
Handles event callbacks by translating an EventId into a windows message.
EventId
Events generated by the FMI PC Application.
#define WM_EVENT(_event)
Translation from an application event to the corresponding Windows message.
unsigned long int uint32
32-bit unsigned integer