displaying result all at once...
-
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
-
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
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] -
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
You can insert file names to listbox or listctrl before delete them.