-#define BMP_BUTTON_SIZE_X 10
-#define BMP_BUTTON_SIZE_Y 10
-
-wxBitmap MyStatusBar::CreateBitmapForButton(bool on)
-{
- wxBitmap bitmap(BMP_BUTTON_SIZE_X+1, BMP_BUTTON_SIZE_Y+1);
- wxMemoryDC dc;
- dc.SelectObject(bitmap);
- dc.SetBrush(on ? *wxGREEN_BRUSH : *wxRED_BRUSH);
- dc.SetBackgroundMode(wxBRUSHSTYLE_TRANSPARENT);
- dc.Clear();
- dc.DrawEllipse(0, 0, BMP_BUTTON_SIZE_X, BMP_BUTTON_SIZE_Y);
- dc.SelectObject(wxNullBitmap);
-
- return bitmap;
-}
-