How to load a large array of strings in to an MFC combobox control fast as possible?

后端 未结 5 1595
萌比男神i
萌比男神i 2021-01-06 04:18

I have an array of 1000 strings to load into a combo box. What is the fastest way to load the array of strings into the combo box?

Is there some way other than itera

5条回答
  •  天涯浪人
    2021-01-06 04:43

    Possibly faster than CComboBox with DrawItem would be an owner data CListCtrl. This would also serve your goal of duplicating a subset of the items into other lists, since a common data source could be used.

    I suggest this because a 1000-item CComboBox isn't going to be very usable.

提交回复
热议问题