]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/palmos/datectrl.h
Added fontfactory.h that should have been part of 49213.
[wxWidgets.git] / include / wx / palmos / datectrl.h
index cac08bbaabca095c5285b330626afdf4f7b0d120..4b4d086135cc07ba823ca1a8e866171155f0e079 100644 (file)
@@ -20,7 +20,7 @@ class WXDLLIMPEXP_ADV wxDatePickerCtrl : public wxDatePickerCtrlBase
 {
 public:
     // ctors
-    wxDatePickerCtrl() { }
+    wxDatePickerCtrl() { Init(); }
 
     wxDatePickerCtrl(wxWindow *parent,
                      wxWindowID id,
@@ -31,6 +31,7 @@ public:
                      const wxValidator& validator = wxDefaultValidator,
                      const wxString& name = wxDatePickerCtrlNameStr)
     {
+        Init();
         Create(parent, id, dt, pos, size, style, validator, name);
     }
 
@@ -59,7 +60,13 @@ public:
 protected:
     virtual wxSize DoGetBestSize() const;
 
-    DECLARE_NO_COPY_CLASS(wxDatePickerCtrl)
+private:
+    wxDateTime m_dt;
+
+    void Init() { m_dt = wxDateTime::Today(); }
+
+
+    DECLARE_DYNAMIC_CLASS_NO_COPY(wxDatePickerCtrl)
 };
 
 #endif // _WX_PALMOS_DATECTRL_H_