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. Maximum number of items in listbox

Maximum number of items in listbox

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 3 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.
  • T Offline
    T Offline
    tuxyboy
    wrote on last edited by
    #1

    Windows 95 only: The nItems parameter is limited to 16-bit values. This means list boxes cannot contain more than 32,767 So above W95 is it supposed to work with let's say app. 60 000 items? Because on XP it doesn't seem to be working correctly. It displays the items, but I also use itemdata pointers. The getcount() doesn't return the correct number of items... Anybody dealt with something similar?

    C D 2 Replies Last reply
    0
    • T tuxyboy

      Windows 95 only: The nItems parameter is limited to 16-bit values. This means list boxes cannot contain more than 32,767 So above W95 is it supposed to work with let's say app. 60 000 items? Because on XP it doesn't seem to be working correctly. It displays the items, but I also use itemdata pointers. The getcount() doesn't return the correct number of items... Anybody dealt with something similar?

      C Offline
      C Offline
      chandu004
      wrote on last edited by
      #2

      u mean u are not getting it in 95 or xp. any way try using something like getcountex()

      T 1 Reply Last reply
      0
      • C chandu004

        u mean u are not getting it in 95 or xp. any way try using something like getcountex()

        T Offline
        T Offline
        tuxyboy
        wrote on last edited by
        #3

        The first sentence is from MSDN. I use XP, so thought it should work, but it gives incorrect result. getcountex? with listbox? that function doesn't seem to exist on vc++ ...

        C 1 Reply Last reply
        0
        • T tuxyboy

          The first sentence is from MSDN. I use XP, so thought it should work, but it gives incorrect result. getcountex? with listbox? that function doesn't seem to exist on vc++ ...

          C Offline
          C Offline
          chandu004
          wrote on last edited by
          #4

          does it even fail for less number of items?

          1 Reply Last reply
          0
          • T tuxyboy

            Windows 95 only: The nItems parameter is limited to 16-bit values. This means list boxes cannot contain more than 32,767 So above W95 is it supposed to work with let's say app. 60 000 items? Because on XP it doesn't seem to be working correctly. It displays the items, but I also use itemdata pointers. The getcount() doesn't return the correct number of items... Anybody dealt with something similar?

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

            tuxyboy wrote:

            It displays the items...

            All 60,000 of them? If so, how are you using the GetCount() method?


            "A good athlete is the result of a good and worthy opponent." - David Crow

            "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

            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