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


i have array of 1000 strings load combo box. fastest way load array of strings combo box?

is there way other iterating on list of strings, putting each string combo box 1 @ time?

and how copy combo box data once loaded 10 other combo boxes?

if have 1,000 strings repeated in 10 comboboxes, may want consider using owner drawn combobox, draws strings on fly based on indices array, rather storing them in combobox @ all. way faster, way more memory efficient. check out drawitem method , drawitemstruct structure in on-line help. basically, using initstorage , insertstring (as mentioned nusonic) create 1000 blank items in combobx, , override drawitem extract , draw required string, based on index, needs drawn.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -