X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a305d600e2b4b233c9263abacc39e6da88c0171e..2e35565ac8bc73b273db952b6e41880cef219c8d:/src/generic/combog.cpp diff --git a/src/generic/combog.cpp b/src/generic/combog.cpp index 0987c8a856..ad7874f22c 100644 --- a/src/generic/combog.cpp +++ b/src/generic/combog.cpp @@ -187,8 +187,8 @@ bool wxGenericComboCtrl::Create(wxWindow *parent, // Set background SetBackgroundStyle( wxBG_STYLE_CUSTOM ); // for double-buffering - // SetBestSize should be called last - SetBestSize(size); + // SetInitialSize should be called last + SetInitialSize(size); return true; } @@ -276,8 +276,10 @@ void wxGenericComboCtrl::OnPaintEvent( wxPaintEvent& WXUNUSED(event) ) dc.DrawRectangle(rect); if ( !m_btn ) + { // Standard button rendering - DrawButton(dc,rectb,true); + DrawButton(dc,rectb); + } // paint required portion on the control if ( (!m_text || m_widthCustomPaint) )