From 44f08a22919e354325a9e4a08e759a98d27683ed Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 17 Jun 2004 21:36:32 +0000 Subject: [PATCH] Use GetBackgroundColour in the default OnEraseBackground so it can use the default if the colour hasn't been explicitly set git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/window.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 5c826bf7bc..62e779db4a 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -4099,10 +4099,11 @@ void wxWindowMSW::OnEraseBackground(wxEraseEvent& event) { RECT rect; ::GetClientRect(GetHwnd(), &rect); - - COLORREF ref = PALETTERGB(m_backgroundColour.Red(), - m_backgroundColour.Green(), - m_backgroundColour.Blue()); + + wxColour backgroundColour( /*m_backgroundColour*/ GetBackgroundColour()); + COLORREF ref = PALETTERGB(backgroundColour.Red(), + backgroundColour.Green(), + backgroundColour.Blue()); HBRUSH hBrush = ::CreateSolidBrush(ref); if ( !hBrush ) wxLogLastError(wxT("CreateSolidBrush")); -- 2.50.0