X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/41ce9ae1b02dbfbe467978be871506246d7ab48e..4d9d127f45d6c9af714da5b84081d01a2f15affe:/src/msw/bmpcbox.cpp?ds=inline diff --git a/src/msw/bmpcbox.cpp b/src/msw/bmpcbox.cpp index 852fb0485a..19a5d3a050 100644 --- a/src/msw/bmpcbox.cpp +++ b/src/msw/bmpcbox.cpp @@ -131,6 +131,7 @@ void wxBitmapComboBox::RecreateControl() wxString value = GetValue(); wxPoint pos = GetPosition(); wxSize size = GetSize(); + size.y = GetBestSize().y; wxArrayString strings = GetStrings(); wxComboBox::DoClear(); @@ -176,6 +177,8 @@ void wxBitmapComboBox::RecreateControl() { SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW)); } + + ::SendMessage(GetHwnd(), CB_SETITEMHEIGHT, 0, MeasureItem(0)); } wxBitmapComboBox::~wxBitmapComboBox() @@ -308,7 +311,7 @@ bool wxBitmapComboBox::OnAddBitmap(const wxBitmap& bitmap) return true; } - + return false; } @@ -365,7 +368,7 @@ bool wxBitmapComboBox::MSWOnDraw(WXDRAWITEMSTRUCT *item) if ( pos == -1 ) return FALSE; - int flags = 0; + int flags = 0; if ( lpDrawItem->itemState & ODS_COMBOBOXEDIT ) flags |= wxODCB_PAINTING_CONTROL; if ( lpDrawItem->itemState & ODS_SELECTED )