Style correction

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2007-11-14 14:53:36 +00:00
parent 209e9baf33
commit 8875116b93
2 changed files with 5 additions and 3 deletions

View File

@@ -129,9 +129,11 @@ wxRichTextCtrl::wxRichTextCtrl(wxWindow* parent,
bool wxRichTextCtrl::Create( wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size, long style, bool wxRichTextCtrl::Create( wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size, long style,
const wxValidator& validator, const wxString& name) const wxValidator& validator, const wxString& name)
{ {
#ifdef __WXMSW__
if ((style & wxBORDER_MASK) == wxBORDER_DEFAULT) if ((style & wxBORDER_MASK) == wxBORDER_DEFAULT)
style |= wxBORDER_THEME; #ifdef __WXMSW__
style |= GetThemedBorderStyle();
#else
style |= wxBORDER_SUNKEN;
#endif #endif
if (!wxTextCtrlBase::Create(parent, id, pos, size, if (!wxTextCtrlBase::Create(parent, id, pos, size,

View File

@@ -835,7 +835,7 @@ bool wxRichTextStyleListCtrl::Create(wxWindow* parent, wxWindowID id, const wxPo
#ifdef __WXMSW__ #ifdef __WXMSW__
listBoxStyle = GetThemedBorderStyle(); listBoxStyle = GetThemedBorderStyle();
#else #else
listBoxStyle = wxBORDER_SIMPLE; listBoxStyle = wxBORDER_SUNKEN;
#endif #endif
} }
else else