X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9afb0576c1b6c1d426688597891d34dd94a9418..ed2da291ad485031cf6fd23d3a61a35560e37dd6:/src/msw/bmpcbox.cpp diff --git a/src/msw/bmpcbox.cpp b/src/msw/bmpcbox.cpp index 19a5d3a050..52235a8779 100644 --- a/src/msw/bmpcbox.cpp +++ b/src/msw/bmpcbox.cpp @@ -140,7 +140,7 @@ void wxBitmapComboBox::RecreateControl() DissociateHandle(); ::DestroyWindow(hwnd); - if ( !MSWCreateControl(wxT("COMBOBOX"), value, pos, size) ) + if ( !MSWCreateControl(wxT("COMBOBOX"), wxEmptyString, pos, size) ) return; // initialize the controls contents @@ -179,6 +179,9 @@ void wxBitmapComboBox::RecreateControl() } ::SendMessage(GetHwnd(), CB_SETITEMHEIGHT, 0, MeasureItem(0)); + + // Revert the old string value + ChangeValue(value); } wxBitmapComboBox::~wxBitmapComboBox()