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