Fixed a problem with borders being set wrong sometimes on wxMSW, XP, VC++ 7

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-12-19 23:13:53 +00:00
parent 5f265f87d9
commit c76b1a30fa
3 changed files with 11 additions and 0 deletions

View File

@@ -444,6 +444,9 @@ WXDWORD wxTextCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const
void wxTextCtrl::SetWindowStyleFlag(long style)
{
if ( (style & wxBORDER_MASK) == wxBORDER_DEFAULT )
style |= wxBORDER_SUNKEN;
#if wxUSE_RICHEDIT
// we have to deal with some styles separately because they can't be
// changed by simply calling SetWindowLong(GWL_STYLE) but can be changed