From cad599a1f1dd0d62e0e70998ab90c7577039cbc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 8 May 2001 22:29:02 +0000 Subject: [PATCH] MSVC fixes for wxEditableListBox (still misteriously gives assertion failure when calling wxListCtrl::EditLabel) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/gizmos/editlbox.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/src/gizmos/editlbox.cpp b/contrib/src/gizmos/editlbox.cpp index 52a53a9fb0..5f3b77a2f0 100644 --- a/contrib/src/gizmos/editlbox.cpp +++ b/contrib/src/gizmos/editlbox.cpp @@ -134,7 +134,8 @@ wxEditableListBox::wxEditableListBox(wxWindow *parent, wxWindowID id, m_listCtrl = new CleverListCtrl(this, wxID_ELD_LISTCTRL, wxDefaultPosition, wxDefaultSize, wxLC_REPORT | wxLC_NO_HEADER | - wxLC_SINGLE_SEL | wxSUNKEN_BORDER); + wxLC_SINGLE_SEL | wxSUNKEN_BORDER | + wxLC_EDIT_LABELS); wxArrayString empty_ar; SetStrings(empty_ar); @@ -142,6 +143,7 @@ wxEditableListBox::wxEditableListBox(wxWindow *parent, wxWindowID id, SetAutoLayout(TRUE); SetSizer(sizer); + Layout(); } void wxEditableListBox::SetStrings(const wxArrayString& strings)