implemented GetDefaultBorder() in wxControl, override it in some controls which don't want to have sunken style by default

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-07-06 21:35:32 +00:00
parent b2644cc3cc
commit 65bc172c97
8 changed files with 32 additions and 43 deletions

View File

@@ -355,12 +355,6 @@ void wxTextCtrl::AdoptAttributesFromHWND()
WXDWORD wxTextCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const
{
// default border for the text controls is the sunken one
if ( (style & wxBORDER_MASK) == wxBORDER_DEFAULT )
{
style |= wxBORDER_SUNKEN;
}
long msStyle = wxControl::MSWGetStyle(style, exstyle);
// styles which we alaways add by default
@@ -424,9 +418,6 @@ 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