CListBox ... InitStorage()

Tech-Archive recommends: Fix windows errors by optimizing your registry



Doesn't seems to work!

Filling a CListBox with over 75,000 strings in it, took more than 5 minutes
!
I tried using InitStorage( nbitems, length_item ) before filling the
listbox,
and it doesn't seem to change anything. It supposed to be used to allocate
CListBox memory before using AddStgring() and InsertString().

Does anyone have succesfully used this InitStorage() function..???
(I'm not using Win 98.. whit listbox limited to 32 thousands.. then)

Thanks!
jmarc...


.



Relevant Pages

  • InitStorage for CListBox..!
    ... Filling a CListBox with over 75,000 strings in it, took more than 5 ... I tried using InitStorage(nbitems, length_item) before filling ... CListBox memory before using AddStgringand InsertString() functions... ...
    (microsoft.public.dotnet.languages.vc)
  • Re: CListBox ... InitStorage()
    ... The InitStorage allocates memory for the items, but you won't notice any difference as long as the UI is updated for every item you add. ... Filling a CListBox with over 75,000 strings in it, took more than 5 minutes! ... CListBox memory before using AddStgringand InsertString. ...
    (microsoft.public.dotnet.framework)