X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d9b77552eeb78e0c7ee903aa265dc187651ff57..695237bccd652c60deba347117ba5ab32067880c:/include/wx/spinctrl.h 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_