]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/spinctrl.h
use HasFlag() and InXXX() instead of explicit flag testing (patch 899507)
[wxWidgets.git] / include / wx / spinctrl.h
index 17b013086a6df6e6283b8ed28c60c0488dc4c907..4f3f067d2601c55ad3fbb418e621453d0572c06e 100644 (file)
@@ -70,7 +70,7 @@ protected:
 #endif // platform
 
 #define EVT_SPINCTRL(id, fn) \
-    DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_SPINCTRL_UPDATED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & fn, (wxObject *) NULL ),
+    DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_SPINCTRL_UPDATED, id, -1, (wxObjectEventFunction) (wxEventFunction)  wxStaticCastEvent( wxSpinEventFunction, & fn ), (wxObject *) NULL ),
 
 #endif // _WX_SPINCTRL_H_