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. about CListCtrl

about CListCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
3 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.
  • M Offline
    M Offline
    muddog
    wrote on last edited by
    #1

    when i want to insert 5000-7000 items to a listctrl. it's inserting process is very slow. how to deal with that? 3x. and anyother Q: when i use CListBox to SetCurSel(5000),or lager number it will also slow. how to do? love program

    C A 2 Replies Last reply
    0
    • M muddog

      when i want to insert 5000-7000 items to a listctrl. it's inserting process is very slow. how to deal with that? 3x. and anyother Q: when i use CListBox to SetCurSel(5000),or lager number it will also slow. how to do? love program

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

      For a good solution take a look at Chris Maunder article "Using text callbacks in ListView Controls" bye, CC.

      1 Reply Last reply
      0
      • M muddog

        when i want to insert 5000-7000 items to a listctrl. it's inserting process is very slow. how to deal with that? 3x. and anyother Q: when i use CListBox to SetCurSel(5000),or lager number it will also slow. how to do? love program

        A Offline
        A Offline
        Abin
        wrote on last edited by
        #3

        Call "LockWindowUpdate" before bulk insertion and "UnlockWindowUpdate" after. m_wndListCtrl.LockWindowUpdate(); /* ... insert your 7000 items now ... */ m_wndListCtrl.UnlockWindowUpdate();

        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