X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d9b77552eeb78e0c7ee903aa265dc187651ff57..b6a3d6ad88a7544ed5fabf3c2de1b2d8af2cb8dc:/include/wx/spinctrl.h?ds=sidebyside diff --git a/include/wx/spinctrl.h b/include/wx/spinctrl.h index afa83467f3..9d6cd5c3e5 100644 --- a/include/wx/spinctrl.h +++ b/include/wx/spinctrl.h @@ -60,5 +60,8 @@ 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) { wxEVT_COMMAND_SPINCTRL_UPDATED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & fn, (wxObject *) NULL }, + #endif // _WX_SPINCTRL_H_