git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34317
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// if there is no special brush just use the solid background colour
HBRUSH hbr = (HBRUSH)m_hbrBackground;
// if there is no special brush just use the solid background colour
HBRUSH hbr = (HBRUSH)m_hbrBackground;
- hbr = GetHbrushOf(wxBrush(GetBackgroundColour()));
+ {
+ brush = wxBrush(GetBackgroundColour());
+ hbr = GetHbrushOf(brush);
+ }
::FillRect(GetHdcOf(memdc), &rc, hbr);
::FillRect(GetHdcOf(memdc), &rc, hbr);