X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/498fd97d9e8eafbc1c12b8721bc739c492bdf22e..56f69d54faea99a58828c2077c42fccc1303e490:/src/msw/statbr95.cpp diff --git a/src/msw/statbr95.cpp b/src/msw/statbr95.cpp index d85ba867de..d28a6b8ae8 100644 --- a/src/msw/statbr95.cpp +++ b/src/msw/statbr95.cpp @@ -6,7 +6,7 @@ // Created: 04.04.98 // RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin -// Licence: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ @@ -27,7 +27,7 @@ #include "wx/dcclient.h" #endif -#if defined(__WIN95__) && wxUSE_NATIVE_STATUSBAR +#if wxUSE_STATUSBAR && defined(__WIN95__) && wxUSE_NATIVE_STATUSBAR #include "wx/intl.h" #include "wx/log.h" @@ -36,7 +36,7 @@ #include "wx/msw/private.h" #include -#if defined(__WIN95__) && !((defined(__GNUWIN32_OLD__) || defined(__TWIN32__)) && !defined(__CYGWIN10__)) +#if defined(__WIN95__) && !(defined(__GNUWIN32_OLD__) && !defined(__CYGWIN10__)) #include #endif @@ -115,6 +115,8 @@ bool wxStatusBar95::Create(wxWindow *parent, SetFieldsCount(1); SubclassWin(m_hWnd); + SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_MENUBAR)); + return TRUE; } @@ -128,6 +130,8 @@ void wxStatusBar95::SetFieldsCount(int nFields, const int *widths) wxASSERT_MSG( (nFields > 0) && (nFields < 255), _T("too many fields") ); wxStatusBarBase::SetFieldsCount(nFields, widths); + + SetFieldsWidth(); } void wxStatusBar95::SetStatusWidths(int n, const int widths[])