- // has the max width increased?
- wxCoord width;
- GetTextExtent(item, &width, NULL);
- if ( width > m_maxWidth )
- {
- m_maxWidth = width;
- m_maxWidthItem = index;
- m_updateScrollbarX = true;
- }
- }
-
- RefreshFromItemToEnd(index);
-
- return index;
-}
+ const wxString& item = items[i];
+ idx = IsSorted() ? m_strings->Add(item)
+ : (m_strings->Insert(item, pos), pos++);