]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/notebook.h
Not all implementations of wxMDIChildFrame derive from wxFrame
[wxWidgets.git] / include / wx / notebook.h
index c1a04385bf2080ac83e5d49fdf250fdf2c15ff5a..02f4a116756bbc3bff3d97788bc0440d8de6c948 100644 (file)
@@ -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))