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:
@@ -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"));
|
||||
|
Reference in New Issue
Block a user