X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a2d93e735a9f126b855a9353ca8ddeacaaf52817..6ba636000f13b4bf7d3e7dcfad429713085f6700:/src/generic/statusbr.cpp diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index a65e6c1e5c..82b90a180b 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -80,7 +80,6 @@ bool wxStatusBarGeneric::Create(wxWindow *parent, m_nFields = 0; m_borderX = wxTHICK_LINE_BORDER; m_borderY = wxTHICK_LINE_BORDER; - m_themeEnabled = TRUE; bool success = wxWindow::Create(parent, id, wxDefaultPosition, wxDefaultSize, @@ -176,11 +175,17 @@ void wxStatusBarGeneric::OnPaint(wxPaintEvent& WXUNUSED(event) ) { wxPaintDC dc(this); +#ifdef __WXPM__ + RECTL wrectl; + + ::WinQueryWindowRect(GetHWND(), &wrectl); + ::WinFillRect(dc.GetHDC(), &wrectl, CLR_BLACK); +#else + int i; if ( GetFont().Ok() ) dc.SetFont(GetFont()); dc.SetBackgroundMode(wxTRANSPARENT); - dc.SetTextForeground(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_WINDOWTEXT)); for ( i = 0; i < m_nFields; i ++ ) DrawField(dc, i); @@ -188,6 +193,7 @@ void wxStatusBarGeneric::OnPaint(wxPaintEvent& WXUNUSED(event) ) # ifdef __WXMSW__ dc.SetFont(wxNullFont); # endif // MSW +#endif } void wxStatusBarGeneric::DrawFieldText(wxDC& dc, int i) @@ -322,7 +328,7 @@ bool wxStatusBarGeneric::GetFieldRect(int n, wxRect& rect) const void wxStatusBarGeneric::InitColours() { // Shadow colours -#ifndef __WIN16__ +#if defined(__WIN95__) wxColour mediumShadowColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DSHADOW)); m_mediumShadowPen = wxPen(mediumShadowColour, 1, wxSOLID);