wxString value = GetValue();
wxPoint pos = GetPosition();
wxSize size = GetSize();
+ size.y = GetBestSize().y;
wxArrayString strings = GetStrings();
wxComboBox::DoClear();
DissociateHandle();
::DestroyWindow(hwnd);
- if ( !MSWCreateControl(wxT("COMBOBOX"), value, pos, size) )
+ if ( !MSWCreateControl(wxT("COMBOBOX"), wxEmptyString, pos, size) )
return;
// initialize the controls contents
{
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
}
+
+ ::SendMessage(GetHwnd(), CB_SETITEMHEIGHT, 0, MeasureItem(0));
+
+ // Revert the old string value
+ if ( !HasFlag(wxCB_READONLY) )
+ ChangeValue(value);
}
wxBitmapComboBox::~wxBitmapComboBox()