wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, \
id, \
-1, \
- (wxObjectEventFunction)(wxEventFunction)(wxListbookEventFunction) &fn, \
+ (wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent( wxListbookEventFunction, &fn ), \
NULL \
),
wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, \
id, \
-1, \
- (wxObjectEventFunction)(wxEventFunction)(wxListbookEventFunction) &fn, \
+ (wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent( wxListbookEventFunction, &fn ), \
NULL \
),