X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37d403aa1cf182cfc01e2ce1753c2dda39ba82ea..f1d93f0beeec9d88f8a225aa35a9ccc163dcdb15:/src/generic/statusbr.cpp diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index 9121f45f62..82b90a180b 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -175,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); @@ -187,6 +193,7 @@ void wxStatusBarGeneric::OnPaint(wxPaintEvent& WXUNUSED(event) ) # ifdef __WXMSW__ dc.SetFont(wxNullFont); # endif // MSW +#endif } void wxStatusBarGeneric::DrawFieldText(wxDC& dc, int i) @@ -321,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);