// Prepare background for double-buffering
SetBackgroundStyle( wxBG_STYLE_CUSTOM );
- // SetBestSize should be called last
- SetBestSize(size);
+ // SetInitialSize should be called last
+ SetInitialSize(size);
return true;
}
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) )