- if (IsInMonth == true){
-
- dc.SetPen(wxPen(wxColor(255,255,255), 0, wxPENSTYLE_TRANSPARENT));
- dc.SetBrush(wxBrush(wxColor(255,255,255)));
- dc.DrawRectangle(TopSectionSizerItem->GetRect());
- dc.SetBrush(wxBrush(wxColor(225,225,225)));
- dc.DrawRectangle(MainSectionSizerItem->GetRect());
- EventListFrameDC.SetPen(wxPen(wxColor(255,255,255), 0, wxPENSTYLE_TRANSPARENT));
- EventListFrameDC.SetBrush(wxBrush(wxColor(225,225,225)));
- EventListFrameDC.DrawRectangle(EventListFrame->GetClientRect());
-
- } else {
-
- dc.SetPen(wxPen(wxColor(185,185,185), 0, wxPENSTYLE_TRANSPARENT));
- dc.SetBrush(wxBrush(wxColor(185,185,185)));
- dc.DrawRectangle(TopSectionSizerItem->GetRect());
- dc.SetBrush(wxBrush(wxColor(155,155,155)));
- dc.DrawRectangle(MainSectionSizerItem->GetRect());
- EventListFrameDC.SetPen(wxPen(wxColor(255,255,255), 0, wxPENSTYLE_TRANSPARENT));
- EventListFrameDC.SetBrush(wxBrush(wxColor(155,155,155)));
- EventListFrameDC.DrawRectangle(EventListFrame->GetClientRect());
-
- }
-
- // Draw the border.
-
- //dc.SetBrush(wxBrush(wxColor(0,0,0), wxBRUSHSTYLE_TRANSPARENT));
-
- this->Layout();