X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/df16cb09b114debf781f229cd8762212d7584b0f..a8ed16c999d02b871e7baad7af1962b0a6cbb326:/src/generic/datectlg.cpp diff --git a/src/generic/datectlg.cpp b/src/generic/datectlg.cpp index c5b7b84a53..7ee0b66c88 100644 --- a/src/generic/datectlg.cpp +++ b/src/generic/datectlg.cpp @@ -209,11 +209,15 @@ private: // functions honours wxDP_SHOWCENTURY flag. wxString GetLocaleDateFormat() const { +#if wxUSE_INTL wxString fmt = wxLocale::GetInfo(wxLOCALE_SHORT_DATE_FMT); if ( HasDPFlag(wxDP_SHOWCENTURY) ) fmt.Replace("%y", "%Y"); return fmt; +#else // !wxUSE_INTL + return wxT("x"); +#endif // wxUSE_INTL/!wxUSE_INTL } bool SetFormat(const wxString& fmt) @@ -378,6 +382,14 @@ wxSize wxDatePickerCtrlGeneric::DoGetBestSize() const return m_combo->GetBestSize(); } +wxWindowList wxDatePickerCtrlGeneric::GetCompositeWindowParts() const +{ + wxWindowList parts; + parts.push_back(m_combo); + parts.push_back(m_popup); + return parts; +} + // ---------------------------------------------------------------------------- // wxDatePickerCtrlGeneric API // ----------------------------------------------------------------------------