]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/timer.h
Allow wxStaticText to have a custom fg without a custom bg
[wxWidgets.git] / include / wx / timer.h
index 409f88dc5301bb68e7de5cc4e52a6755ed6d29ef..2ee202c10662660e815a9c33cdac5e79a284089e 100644 (file)
@@ -190,7 +190,7 @@ private:
 typedef void (wxEvtHandler::*wxTimerEventFunction)(wxTimerEvent&);
 
 #define wxTimerEventHandler(func) \
-    (wxObjectEventFunction)wxStaticCastEvent(wxTimerEventFunction, &func)
+    (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxTimerEventFunction, &func)
 
 #define EVT_TIMER(timerid, func) \
     wx__DECLARE_EVT1(wxEVT_TIMER, timerid, wxTimerEventHandler(func))