X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef0120c1bbb3e9f8031e6aecebb497c58f2be432..22bfe96ca6b7248ab8161ec97963bca8e3be963e:/include/wx/listbook.h diff --git a/include/wx/listbook.h b/include/wx/listbook.h index c54b06e33f..fe6b1ba3bb 100644 --- a/include/wx/listbook.h +++ b/include/wx/listbook.h @@ -170,7 +170,7 @@ typedef void (wxEvtHandler::*wxListbookEventFunction)(wxListbookEvent&); wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, \ id, \ -1, \ - (wxObjectEventFunction)(wxEventFunction)(wxListbookEventFunction) &fn, \ + (wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent( wxListbookEventFunction, &fn ), \ NULL \ ), @@ -179,7 +179,7 @@ typedef void (wxEvtHandler::*wxListbookEventFunction)(wxListbookEvent&); wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, \ id, \ -1, \ - (wxObjectEventFunction)(wxEventFunction)(wxListbookEventFunction) &fn, \ + (wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent( wxListbookEventFunction, &fn ), \ NULL \ ),