Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. List Control Data Capacity

List Control Data Capacity

Scheduled Pinned Locked Moved C / C++ / MFC
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hellogany
    wrote on last edited by
    #1

    Hi All I am using ListControl for my application in Report View. Can Any One have idea of maximum number of datas that can be viewable in list control. Regards Ganesh.P

    _ K CPalliniC D 4 Replies Last reply
    0
    • H hellogany

      Hi All I am using ListControl for my application in Report View. Can Any One have idea of maximum number of datas that can be viewable in list control. Regards Ganesh.P

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      More than enough I would say. If not, you need to change you're UI design. Anyway that will also depend on how many columns you're going to have. The index is stored as an integer. So you definitely cannot store more items than the capacity of an integer variable. -- Modified Sunday, February 21, 2010 11:48 PM

      1 Reply Last reply
      0
      • H hellogany

        Hi All I am using ListControl for my application in Report View. Can Any One have idea of maximum number of datas that can be viewable in list control. Regards Ganesh.P

        K Offline
        K Offline
        KingsGambit
        wrote on last edited by
        #3

        If we look at the MSDN details of LVM_INSERTITEM message, the item index is a zero-based integer value. So, I guess List control is designed to support up to INT_MAX + 1 items.

        1 Reply Last reply
        0
        • H hellogany

          Hi All I am using ListControl for my application in Report View. Can Any One have idea of maximum number of datas that can be viewable in list control. Regards Ganesh.P

          CPalliniC Offline
          CPalliniC Offline
          CPallini
          wrote on last edited by
          #4

          You may insert many, many items (i.e. millions?) in a list view. However you'll quicky find that flooding the list view will slow down the UI to unacceptable levels (and will make you consider using the Virtual List-View Style]. Why don't you perform a test? :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          In testa che avete, signor di Ceprano?

          1 Reply Last reply
          0
          • H hellogany

            Hi All I am using ListControl for my application in Report View. Can Any One have idea of maximum number of datas that can be viewable in list control. Regards Ganesh.P

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            hellogany wrote:

            Can Any One have idea of maximum number of datas that can be viewable in list control.

            That's governed by the height of the control.

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "Man who follows car will be exhausted." - Confucius

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups