]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/bmpcbox.cpp
Don't eliminate text completely in Ellipsize().
[wxWidgets.git] / src / msw / bmpcbox.cpp
index 52235a87798dd8d648f6c7dba88d25c1e948af3a..3ad1855abfb8e7b0a6b5ba2d001f10bf63036727 100644 (file)
@@ -181,7 +181,8 @@ void wxBitmapComboBox::RecreateControl()
     ::SendMessage(GetHwnd(), CB_SETITEMHEIGHT, 0, MeasureItem(0));
 
     // Revert the old string value
-    ChangeValue(value);
+    if ( !HasFlag(wxCB_READONLY) )
+        ChangeValue(value);
 }
 
 wxBitmapComboBox::~wxBitmapComboBox()