dc.SetBackground(wxBrush(GetBackgroundColour()));
dc.Clear();
- dc.BeginDrawing();
dc.SetFont( GetFont() );
dc.SetBackgroundMode(wxTRANSPARENT);
}
// Finish up by drawing the buffer to the real dc
- dc.EndDrawing();
dc.SelectObject(wxNullBitmap);
real_dc.DrawBitmap(buffer, 0, 0, false);
}
int total_width = m_owner->GetHeaderWindow()->GetWidth();
// if the background colour is white, choose a
// contrasting color for the lines
- dc.SetPen (*((GetBackgroundColour() == *wxWHITE)?
- wxMEDIUM_GREY_PEN : wxWHITE_PEN));
+ dc.SetPen(((GetBackgroundColour() == *wxWHITE) ?
+ wxSystemSettings::GetColour(wxSYS_COLOUR_3DLIGHT) : *wxWHITE_PEN));
dc.DrawLine(0, y_top, total_width, y_top);
dc.DrawLine(0, y, total_width, y);
}