X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/414721d003ccfc07804166774543349c2845cc14..90f6792f530002cf3718b0ab0ce7727be1d21729:/src/msw/textctrl.cpp diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 567a889620..974fa7a30d 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -301,11 +301,6 @@ bool wxTextCtrl::Create(wxWindow *parent, const wxValidator& validator, const wxString& name) { -#ifdef __WXWINCE__ - if ((style & wxBORDER_MASK) == 0) - style |= wxBORDER_SIMPLE; -#endif - // base initialization if ( !CreateControl(parent, id, pos, size, style, validator, name) ) return false; @@ -316,6 +311,17 @@ bool wxTextCtrl::Create(wxWindow *parent, return true; } +// returns true if the platform should explicitly apply a theme border +bool wxTextCtrl::CanApplyThemeBorder() const +{ +#ifdef __WXWINCE__ + return false; +#else + // Standard text control already handles theming + return ((GetWindowStyle() & (wxTE_RICH|wxTE_RICH2)) != 0); +#endif +} + bool wxTextCtrl::MSWCreateText(const wxString& value, const wxPoint& pos, const wxSize& size)