Adding more than 32,767 items to a CListBox
-
Am trying to add more than 32,767 items to a CListBox using AddString ( or even InsertString), and it's not working on Windows 98 although it works on Windows NT and Windows 2000, so what is the solution for this problem knowing that i want to use the CListbox class in my solution ......
-
Am trying to add more than 32,767 items to a CListBox using AddString ( or even InsertString), and it's not working on Windows 98 although it works on Windows NT and Windows 2000, so what is the solution for this problem knowing that i want to use the CListbox class in my solution ......
You can't overcome this listbox limit on Win9x. Even if you could, it's not a very good idea to present the user with thousands of items. Anyway, seems that you'll have to switch to CListCtrl, and probably use LVS_OWNERDATA style. Tomasz Sowinski -- http://www.shooltz.com
-
Am trying to add more than 32,767 items to a CListBox using AddString ( or even InsertString), and it's not working on Windows 98 although it works on Windows NT and Windows 2000, so what is the solution for this problem knowing that i want to use the CListbox class in my solution ......
The old User controls (like the listbox) still have legacy 16-bit limitations, thus the 32K items limit (32K is the max value for a signed 16-bit int). --Mike-- http://home.inreach.com/mdunn/ #include "witty_sig.h" :love: your :bob: with :vegemite: and :beer:
-
Am trying to add more than 32,767 items to a CListBox using AddString ( or even InsertString), and it's not working on Windows 98 although it works on Windows NT and Windows 2000, so what is the solution for this problem knowing that i want to use the CListbox class in my solution ......
Store your own array of items, then use a small list box to display a selected number of them. Use your own slider control and fill the 10 or 20 or however many you are displaying from an index into your own array. Its probably faster anyway. --Mark Terrano