dc.DrawRectangle(rect);
// Button background with theme?
- bool drawButBg = true;
+ int drawButFlags = Draw_PaintBg;
if ( hTheme && m_blankButtonBg )
{
RECT r;
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) )