diff --git a/src/generic/srchctlg.cpp b/src/generic/srchctlg.cpp index 074bee8722..0bc04c38e0 100644 --- a/src/generic/srchctlg.cpp +++ b/src/generic/srchctlg.cpp @@ -300,19 +300,6 @@ bool wxSearchCtrl::Create(wxWindow *parent, wxWindowID id, const wxValidator& validator, const wxString& name) { - // force border style for more native appearance - style &= ~wxBORDER_MASK; -#ifdef __WXGTK__ - style |= wxBORDER_SUNKEN; -#elif defined(__WXMSW__) - // Don't set the style explicitly, let GetDefaultBorder() work it out, unless - // we will get a sunken border (e.g. on Windows 200) in which case we must - // override with a simple border. - if (GetDefaultBorder() == wxBORDER_SUNKEN) - style |= wxBORDER_SIMPLE; -#else - style |= wxBORDER_SIMPLE; -#endif if ( !wxSearchCtrlBaseBaseClass::Create(parent, id, pos, size, style, validator, name) ) {