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 problem.

List control problem.

Scheduled Pinned Locked Moved C / C++ / MFC
help
2 Posts 2 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.
  • S Offline
    S Offline
    sam_psycho
    wrote on last edited by
    #1

    I'm using

    int res= m_cListControl.InsertItem(&lvi);

    to insert item in list box, but problem is that inserted item shud be reflected after execution of above statement, but it reflects after control comes out of that function, so please give me hint or solution.

    S 1 Reply Last reply
    0
    • S sam_psycho

      I'm using

      int res= m_cListControl.InsertItem(&lvi);

      to insert item in list box, but problem is that inserted item shud be reflected after execution of above statement, but it reflects after control comes out of that function, so please give me hint or solution.

      S Offline
      S Offline
      SachinBhave
      wrote on last edited by
      #2

      May be you could call RedrawItems followed by UpdateWindow as soon as you call insert and item into the list control.

      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