From: Vadim Zeitlin Date: Mon, 17 Jan 2005 00:32:22 +0000 (+0000) Subject: implement date events here if wxDatePickerCtrl is not used (as we need them too) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ab9cf6366e3341a5fa1804beb3f359a5ef66e4dd implement date events here if wxDatePickerCtrl is not used (as we need them too) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/calctrl.cpp b/src/generic/calctrl.cpp index ef716d85b2..6e6bf645b0 100644 --- a/src/generic/calctrl.cpp +++ b/src/generic/calctrl.cpp @@ -42,7 +42,12 @@ #include "wx/spinctrl.h" -#define _WX_DEFINE_DATE_EVENTS_ +// if wxDatePickerCtrl code doesn't define the date event, do it here as we +// need it as well +#if !wxUSE_DATEPICKCTRL + #define _WX_DEFINE_DATE_EVENTS_ +#endif + #include "wx/calctrl.h" #define DEBUG_PAINT 0