]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/timer.h
update from James Bishop
[wxWidgets.git] / include / wx / timer.h
index c8bce5dc9b3e4a0f0ca3bb5340ae7abefdade73d..409f88dc5301bb68e7de5cc4e52a6755ed6d29ef 100644 (file)
@@ -189,8 +189,11 @@ private:
 
 typedef void (wxEvtHandler::*wxTimerEventFunction)(wxTimerEvent&);
 
+#define wxTimerEventHandler(func) \
+    (wxObjectEventFunction)wxStaticCastEvent(wxTimerEventFunction, &func)
+
 #define EVT_TIMER(timerid, func) \
-    DECLARE_EVENT_TABLE_ENTRY( wxEVT_TIMER, timerid, wxID_ANY, (wxObjectEventFunction) (wxEventFunction)  wxStaticCastEvent( wxTimerEventFunction, & func ), NULL),
+    wx__DECLARE_EVT1(wxEVT_TIMER, timerid, wxTimerEventHandler(func))
 
 #endif // wxUSE_GUI && wxUSE_TIMER