X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53a64063c80a713baefedb95d06ec850fe853448..3d63133a5ef146494fa821c76c705e535990086a:/src/msw/combo.cpp diff --git a/src/msw/combo.cpp b/src/msw/combo.cpp index 6f70e37d05..7c69f60c86 100644 --- a/src/msw/combo.cpp +++ b/src/msw/combo.cpp @@ -149,8 +149,8 @@ bool wxComboCtrl::Create(wxWindow *parent, // Prepare background for double-buffering SetBackgroundStyle( wxBG_STYLE_CUSTOM ); - // SetBestSize should be called last - SetBestSize(size); + // SetInitialSize should be called last + SetInitialSize(size); return true; } @@ -456,7 +456,7 @@ void wxComboCtrl::OnPaintEvent( wxPaintEvent& WXUNUSED(event) ) dc.DrawRectangle(rect); // Button background with theme? - bool drawButBg = true; + int drawButFlags = Draw_PaintBg; if ( hTheme && m_blankButtonBg ) { RECT r; @@ -468,11 +468,11 @@ void wxComboCtrl::OnPaintEvent( wxPaintEvent& WXUNUSED(event) ) GetHdcOf(dc), &r); - drawButBg = false; + drawButFlags = 0; } // Standard button rendering - DrawButton(dc,rectb,drawButBg); + DrawButton(dc,rectb,drawButFlags); // paint required portion on the control if ( (!m_text || m_widthCustomPaint) )