X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fa03f04345b620d1a14529b05961116b20a1297..ac3b71524692a19343c93ceb93bf5ef5f344f53c:/include/wx/notebook.h diff --git a/include/wx/notebook.h b/include/wx/notebook.h index c1a04385bf..02f4a11675 100644 --- a/include/wx/notebook.h +++ b/include/wx/notebook.h @@ -123,7 +123,7 @@ END_DECLARE_EVENT_TYPES() typedef void (wxEvtHandler::*wxNotebookEventFunction)(wxNotebookEvent&); #define wxNotebookEventHandler(func) \ - (wxObjectEventFunction)wxStaticCastEvent(wxNotebookEventFunction, &func) + (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxNotebookEventFunction, &func) #define EVT_NOTEBOOK_PAGE_CHANGED(winid, fn) \ wx__DECLARE_EVT1(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, winid, wxNotebookEventHandler(fn))