{
// TODO: Convert drawing in this function to Windows API Code
+ const bool useVistaComboBox = ::wxGetWinVersion() >= wxWinVersion_Vista;
+
wxSize sz = GetClientSize();
wxDC* dcPtr = wxAutoBufferedPaintDCFactory(this);
wxDC& dc = *dcPtr;
wxRect rectTextField = m_tcArea;
wxColour bgCol = GetBackgroundColour();
+ // FIXME: Either SetBackgroundColour or GetBackgroundColour
+ // doesn't work under Vista, so here's a temporary
+ // workaround.
+ // In the theme-less rendering code below, this fixes incorrect
+ // background on read-only comboboxes (they are gray, but should be
+ // white).
+ bgCol = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
+
#if wxUSE_UXTHEME
const bool isEnabled = IsThisEnabled();
#if wxUSE_UXTHEME
if ( hTheme )
{
- const bool useVistaComboBox = ::wxGetWinVersion() >= wxWinVersion_Vista;
-
RECT rFull;
wxCopyRectToRECT(borderRect, rFull);
if ( useVistaComboBox )
{
- // FIXME: Either SetBackgroundColour or GetBackgroundColour
- // doesn't work under Vista, so here's a temporary
- // workaround.
- bgCol = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
-
// Draw the entire control as a single button?
if ( !isNonStdButton )
{