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. displaying result all at once...

displaying result all at once...

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
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.
  • N Offline
    N Offline
    neha agarwal27
    wrote on last edited by
    #1

    Hi all, In my application i am deleting files and want to display it in a list control as soon as i delete that file... my problem is that it is displayed after all the files are deleted not one by one..... How to resolve it.... Thanks in advance

    C H 2 Replies Last reply
    0
    • N neha agarwal27

      Hi all, In my application i am deleting files and want to display it in a list control as soon as i delete that file... my problem is that it is displayed after all the files are deleted not one by one..... How to resolve it.... Thanks in advance

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Are you using a separate thread to delete the files ? If no, then if this process is quite long, your UI won't respond to any messages anymore (which means that it is frozen and not updated so, you don't see the files removed from the list ctrl). You have to do that in a worker thread and messages to your window when a file has been deleted. Handle this message in your dialog class and upon receiving it, remove the entry from the list control. Another point: is the delete of these files that long ? Because in general it doesn't take a lot of time to delete a file, so even with a thread, chances are that it will be too fast to see something.

      Cédric Moonen Software developer
      Charting control [v1.3]

      1 Reply Last reply
      0
      • N neha agarwal27

        Hi all, In my application i am deleting files and want to display it in a list control as soon as i delete that file... my problem is that it is displayed after all the files are deleted not one by one..... How to resolve it.... Thanks in advance

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        You can insert file names to listbox or listctrl before delete them.

        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