-typedef void (wxEvtHandler::*wxListbookEventFunction)(wxListbookEvent&);
-
-#define EVT_LISTBOOK_PAGE_CHANGED(id, fn) \
- DECLARE_EVENT_TABLE_ENTRY( \
- wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, \
- id, \
- wxID_ANY, \
- (wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent( wxListbookEventFunction, &fn ), \
- NULL \
- ),
-
-#define EVT_LISTBOOK_PAGE_CHANGING(id, fn) \
- DECLARE_EVENT_TABLE_ENTRY( \
- wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, \
- id, \
- wxID_ANY, \
- (wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent( wxListbookEventFunction, &fn ), \
- NULL \
- ),
+#define EVT_LISTBOOK_PAGE_CHANGING(winid, fn) \
+ wx__DECLARE_EVT1(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, winid, wxBookCtrlEventHandler(fn))