X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d9b77552eeb78e0c7ee903aa265dc187651ff57..bedaf53eaf4e2a860b34d4ff5e0b1928ce8fa5c9:/include/wx/spinctrl.h diff --git a/include/wx/spinctrl.h b/include/wx/spinctrl.h index afa83467f3..94b62fb846 100644 --- a/include/wx/spinctrl.h +++ b/include/wx/spinctrl.h @@ -60,5 +60,9 @@ protected: #include "wx/generic/spinctlg.h" #endif // platform +// Macro must be defined here, not event.h, since it must reference wxSpinEventFunction +#define EVT_SPINCTRL(id, fn) \ + DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_SPINCTRL_UPDATED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & fn, (wxObject *) NULL ), + #endif // _WX_SPINCTRL_H_