if ( !wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name) )
return FALSE;
+ m_hasDialogBackground = TRUE;
+
SetLabel(label);
SetBestSize(size);
if ( m_status == Status_Checked )
flags |= wxCONTROL_CHECKED;
+ wxBitmap bitmap(GetBitmap(GetState(flags), m_status));
+
renderer->GetRenderer()->
DrawCheckButton(dc,
GetLabel(),
- GetBitmap(GetState(flags), m_status),
+ bitmap,
renderer->GetRect(),
flags,
GetWindowStyle() & wxALIGN_RIGHT ? wxALIGN_RIGHT