X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/170acdc90e9f92f8b8120fa6c04acdbf45c89582..fcb29b233888f7012ca6cf486c8287f5463787e0:/src/msw/combo.cpp diff --git a/src/msw/combo.cpp b/src/msw/combo.cpp index 367f609c50..7c69f60c86 100644 --- a/src/msw/combo.cpp +++ b/src/msw/combo.cpp @@ -456,7 +456,7 @@ void wxComboCtrl::OnPaintEvent( wxPaintEvent& WXUNUSED(event) ) dc.DrawRectangle(rect); // Button background with theme? - bool drawButBg = true; + int drawButFlags = Draw_PaintBg; if ( hTheme && m_blankButtonBg ) { RECT r; @@ -468,11 +468,11 @@ void wxComboCtrl::OnPaintEvent( wxPaintEvent& WXUNUSED(event) ) GetHdcOf(dc), &r); - drawButBg = false; + drawButFlags = 0; } // Standard button rendering - DrawButton(dc,rectb,drawButBg); + DrawButton(dc,rectb,drawButFlags); // paint required portion on the control if ( (!m_text || m_widthCustomPaint) )