• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 736
  • Last Modified:

CListCtrl (VC 5.0)

How many maximum items I can display in
ListCtrl ? Is there any limit ?
0
devayani
Asked:
devayani
  • 4
  • 3
1 Solution
 
Vinayak KumbarSr Program ManagerCommented:
HI,

I dont think, there is no the limit for it. But if the items are more, then the CListCtrl will take lot of time to update the items. To avoid that u can use the text callback function or the virtual list control, so that updation will be faster.

Try it out.
VinExpert
0
 
cdesignerCommented:
int elements
2147483647

In the theory ;)
0
 
shaigCommented:
Why check that out? This will be a very ineffective way to build your program.

If your goal is to use the list control as a data container then please loose that thought, the list should be better used for GUI only.
0
[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

 
cdesignerCommented:
for data container make class based on CListCtrl  ( i made similar class ) and store in CListCtrl only index in DataBase ( for example )
0
 
shaigCommented:
Yap. That's an example of a more suitable solution.
0
 
cdesignerCommented:
CListBox  in members have 32 bit value - store here index only and may be name of value. This a good way, and fast.

this is answer? ;)
0
 
shaigCommented:
Not yet!  devayani, If you have a large amount of items then you will need to prepare a paging mechnanism that will switch the items in the list acording to certain rools.

It is not complicated to program, let us know if you need more instructions.
0
 
cdesignerCommented:
what you want to do with CListCtrl?
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now