- DrawCheckOrRadioButton(dc, label,
- bitmap.Ok() ? bitmap : GetCheckBitmap(flags),
- rect, flags, align, indexAccel,
- 0); // no focus rect offset for checkboxes
+ if (bitmap.Ok())
+ DrawCheckOrRadioButton(dc, label,
+ bitmap,
+ rect, flags, align, indexAccel,
+ 0); // no focus rect offset for checkboxes
+ else
+ {
+ wxBitmap cbitmap(GetCheckBitmap(flags));
+#if 1
+ DrawCheckOrRadioButton(dc, label,
+ cbitmap,
+ rect, flags, align, indexAccel,
+ 0); // no focus rect offset for checkboxes
+#endif
+ }