void ClueListBox::OnDrawBackground(wxDC & dc, const wxRect & rect, size_t n) const { if (IsSelected(n)) dc.SetBackground(GetSelectionBackground()); else dc.SetBackground(GetBackgroundColour()); dc.Clear(); }
void ContentBoxCtrol::OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const { if ( IsSelected(n) ) { dc.SetBrush( wxBrush(GetSelectionBackground(), wxSOLID) ); } else // !selected { dc.SetBrush( wxBrush(*wxWHITE, wxSOLID) ); } }
wxColour wxHtmlListBox::GetSelectedTextBgColour(const wxColour& WXUNUSED(colBg)) const { return GetSelectionBackground(); }