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
This commit is contained in:
Robin Dunn
2004-06-17 21:36:32 +00:00
parent 44dfb5ce92
commit 44f08a2291

View File

@@ -4099,10 +4099,11 @@ void wxWindowMSW::OnEraseBackground(wxEraseEvent& event)
{ {
RECT rect; RECT rect;
::GetClientRect(GetHwnd(), &rect); ::GetClientRect(GetHwnd(), &rect);
COLORREF ref = PALETTERGB(m_backgroundColour.Red(), wxColour backgroundColour( /*m_backgroundColour*/ GetBackgroundColour());
m_backgroundColour.Green(), COLORREF ref = PALETTERGB(backgroundColour.Red(),
m_backgroundColour.Blue()); backgroundColour.Green(),
backgroundColour.Blue());
HBRUSH hBrush = ::CreateSolidBrush(ref); HBRUSH hBrush = ::CreateSolidBrush(ref);
if ( !hBrush ) if ( !hBrush )
wxLogLastError(wxT("CreateSolidBrush")); wxLogLastError(wxT("CreateSolidBrush"));