]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/datectlg.cpp
Make sure -DNO_GCC_PRAGMA is in wx-config output regardless of the reason.
[wxWidgets.git] / src / generic / datectlg.cpp
index 3b30d8ffec30b0bc844ecb8150b5d51bd84069d2..6250bbe2ae23ceef4cd3d8e62d850c41b20fe44b 100644 (file)
     #pragma hdrstop
 #endif
 
+#ifndef WX_PRECOMP
+    #include "wx/bmpbuttn.h"
+    #include "wx/dialog.h"
+    #include "wx/dcmemory.h"
+    #include "wx/panel.h"
+    #include "wx/textctrl.h"
+    #include "wx/valtext.h"
+#endif
+
 #include "wx/datectrl.h"
 #include "wx/calctrl.h"
 
@@ -79,6 +88,9 @@ bool wxDatePickerCtrl::Create(wxWindow *parent,
                             long style,
                             const wxString& name)
 {
+    wxASSERT_MSG( !(style & wxDP_SPIN),
+                  _T("wxDP_SPIN style not supported, use wxDP_DEFAULT") );
+
     wxString txt;
     if (date.IsValid())
         txt = date.FormatDate();