X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6a27c749b302e17446080bb232ef8010b60f3d00..f1a73c6a816aeba155e88c628a0a778a2fe068bd:/include/wx/palmos/datectrl.h?ds=inline 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_