// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "xh_datectrl.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#pragma hdrstop
#endif
-#if wxUSE_XRC
+#if wxUSE_XRC && wxUSE_DATEPICKCTRL
#include "wx/xrc/xh_datectrl.h"
#include "wx/datectrl.h"
XRC_ADD_STYLE(wxDP_DEFAULT);
XRC_ADD_STYLE(wxDP_SPIN);
XRC_ADD_STYLE(wxDP_DROPDOWN);
+ XRC_ADD_STYLE(wxDP_ALLOWNONE);
XRC_ADD_STYLE(wxDP_SHOWCENTURY);
AddWindowStyles();
}
GetID(),
wxDefaultDateTime,
GetPosition(), GetSize(),
- GetStyle(_T("style"), wxDP_DEFAULT | wxDP_SHOWCENTURY),
+ GetStyle(wxT("style"), wxDP_DEFAULT | wxDP_SHOWCENTURY),
wxDefaultValidator,
GetName());
return IsOfClass(node, wxT("wxDatePickerCtrl"));
}
-#endif // wxUSE_XRC
+#endif // wxUSE_XRC && wxUSE_DATEPICKCTRL