]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dateevt.h
Implemented PocketPC menubar/toolbar as wxToolMenuBar derived
[wxWidgets.git] / include / wx / dateevt.h
index e8ea79849626a373284fd3dd329ba9f8dc180615..b37340c5cd6ce0b07edd367d4782c474cd6e8c70 100644 (file)
@@ -51,7 +51,7 @@ END_DECLARE_EVENT_TYPES()
 typedef void (wxEvtHandler::*wxDateEventFunction)(wxDateEvent&);
 
 #define wxDateEventHandler(func) \
-    (wxObjectEventFunction)wxStaticCastEvent(wxDateEventFunction, &func)
+    (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxDateEventFunction, &func)
 
 #define EVT_DATE_CHANGED(id, fn) \
     wx__DECLARE_EVT1(wxEVT_DATE_CHANGED, id, wxDateEventHandler(fn))