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. Insert Item in Listcontrol/listview using thread.

Insert Item in Listcontrol/listview using thread.

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
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.
  • S Offline
    S Offline
    Sumit Kapoor
    wrote on last edited by
    #1

    HI Dear, How r u ? Actully I got same problem as you may faced(Multithread control) in VC++. I want to place Items in list box. but all placing of items in List must be done in thread. so that all other work can be done side-wise. Can you get me idea..as you may have solved this type of problem.;) PLZ PLZ..Thanks..Sumit Kapoor:) ---Sumit Kapoor---

    V B 2 Replies Last reply
    0
    • S Sumit Kapoor

      HI Dear, How r u ? Actully I got same problem as you may faced(Multithread control) in VC++. I want to place Items in list box. but all placing of items in List must be done in thread. so that all other work can be done side-wise. Can you get me idea..as you may have solved this type of problem.;) PLZ PLZ..Thanks..Sumit Kapoor:) ---Sumit Kapoor---

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      One solution is messages. Send a message to main thread and have it update the control. Kuphryn

      1 Reply Last reply
      0
      • S Sumit Kapoor

        HI Dear, How r u ? Actully I got same problem as you may faced(Multithread control) in VC++. I want to place Items in list box. but all placing of items in List must be done in thread. so that all other work can be done side-wise. Can you get me idea..as you may have solved this type of problem.;) PLZ PLZ..Thanks..Sumit Kapoor:) ---Sumit Kapoor---

        B Offline
        B Offline
        Billar
        wrote on last edited by
        #3

        Hi Sumeet, Nice to see you again.... I find the solution of my problem by calling the SendMessage(IDC_xxx_xxx) to call the ON_BN_CLICKED message directly from your thread function.I also works even in case of User-Interface Thread. Like that you may place ur item directly from your thread program. It will work eeven if you are using User-Interface thread. This may help you. Wish you all the best.. Bye

        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