// function will be called when the process terminates.
// ----------------------------------------------------------------------------
// function will be called when the process terminates.
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
BEGIN_DECLARE_EVENT_TYPES()
// ----------------------------------------------------------------------------
BEGIN_DECLARE_EVENT_TYPES()
#define EVT_END_PROCESS(id, func) \
DECLARE_EVENT_TABLE_ENTRY( \
wxEVT_END_PROCESS, id, -1, \
#define EVT_END_PROCESS(id, func) \
DECLARE_EVENT_TABLE_ENTRY( \
wxEVT_END_PROCESS, id, -1, \
- (wxObjectEventFunction) \
- (wxEventFunction) \
- (wxProcessEventFunction) & func, NULL),
+ (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxProcessEventFunction, & func ), NULL),