- //
- // Just paint simple selection background under where is text
- // (ie. emulate what MSW image choice does).
- //
-
- int xPos = 0; // Starting x of selection rectangle
- const int vSizeDec = 1; // Vertical size reduction of selection rectangle edges
-
- xPos = GetCustomPaintWidth() + 2;
-
- wxCoord x, y;
- GetTextExtent(GetString(item), &x, &y, 0, 0);
-
- dc.SetTextForeground(wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT));
-
- wxColour selCol = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT);
- dc.SetPen(selCol);
- dc.SetBrush(selCol);
- dc.DrawRectangle(rect.x+xPos,
- rect.y+vSizeDec,
- x + 4,
- rect.height-(vSizeDec*2));
+ wxBitmapComboBoxBase::DrawBackground(dc, rect, item, flags);