X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6a27c749b302e17446080bb232ef8010b60f3d00..4b3feaa75de76963492c4202be04be9bf20b321f:/include/wx/palmos/datectrl.h diff --git a/include/wx/palmos/datectrl.h b/include/wx/palmos/datectrl.h index cac08bbaab..4b4d086135 100644 --- a/include/wx/palmos/datectrl.h +++ b/include/wx/palmos/datectrl.h @@ -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_