|
-
March 31st, 2006, 11:43 AM
#8
Re: ListBox problem
 Originally Posted by kingslee
......
and in each function i have hundreds of output. I used only AddString().. with UpdateData(false).
But the List Box displays only after finishing Read Files.
1. The UpdateData(false) call is not needed here, moreover, it only slows the apllication performance down - remove this line.
2. The problem List Box does not display until finishing Read Files is because the CPU is busy reading the files - there is no time to update the GUI. To solve this problem you could create a worker thread and move all "Read Files" operations to it, then PostMessage a user defined message from a worker thread to the View window with some data to update the GUI. Tke a look at this article: WorkerThreads
3. to junma: sendmessage with paramter "LB_INSERTSTRING" is the same as callinf CListBox::InsertString - the same as CListBox::AddString (minus sorting, plus setting the position in list box).
PS. PadexArt was about 20 minutes faster!
Last edited by VictorN; March 31st, 2006 at 11:47 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|