Click here to Skip to main content
15,892,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
followait5-Dec-07 19:16
followait5-Dec-07 19:16 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
Hamid_RT6-Dec-07 0:18
Hamid_RT6-Dec-07 0:18 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
Naveen5-Dec-07 18:50
Naveen5-Dec-07 18:50 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
followait5-Dec-07 19:15
followait5-Dec-07 19:15 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
Hamid_RT6-Dec-07 0:18
Hamid_RT6-Dec-07 0:18 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
ThatsAlok5-Dec-07 19:43
ThatsAlok5-Dec-07 19:43 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
followait5-Dec-07 21:36
followait5-Dec-07 21:36 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
David Crow6-Dec-07 4:44
David Crow6-Dec-07 4:44 
It seems you are doing two things in the while() loop. Why not separate the "add images to list" and "add items to control" into two while() loop? If that is not feasible, then you might want to consider a secondary thread for this so that the UI remains responsive.

Another thing to try would be to call SetRedraw(FALSE) before the "add items to the list" code.



"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne



GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
followait7-Dec-07 4:32
followait7-Dec-07 4:32 
Generali have some question about api MOUSE event. Pin
Jung Seng Won5-Dec-07 16:11
Jung Seng Won5-Dec-07 16:11 
GeneralRe: i have some question about api MOUSE event. Pin
followait5-Dec-07 17:20
followait5-Dec-07 17:20 
GeneralRe: i have some question about api MOUSE event. Pin
Vince Rojas5-Dec-07 18:16
Vince Rojas5-Dec-07 18:16 
GeneralRe: i have some question about api MOUSE event. Pin
Jung Seng Won5-Dec-07 18:57
Jung Seng Won5-Dec-07 18:57 
Generalusing C++ to parse HTML Pin
Tom Paronis5-Dec-07 13:43
Tom Paronis5-Dec-07 13:43 
GeneralRe: using C++ to parse HTML Pin
Hamid_RT5-Dec-07 18:34
Hamid_RT5-Dec-07 18:34 
GeneralRe: using C++ to parse HTML Pin
Tom Paronis6-Dec-07 3:11
Tom Paronis6-Dec-07 3:11 
Generalabusing exceptions Pin
quailsafe5-Dec-07 12:23
quailsafe5-Dec-07 12:23 
GeneralRe: abusing exceptions Pin
Luc Pattyn5-Dec-07 14:06
sitebuilderLuc Pattyn5-Dec-07 14:06 
GeneralRe: abusing exceptions Pin
quailsafe5-Dec-07 14:37
quailsafe5-Dec-07 14:37 
Questionlink error [modified] Pin
linksys20065-Dec-07 12:13
linksys20065-Dec-07 12:13 
GeneralRe: link error Pin
linksys20065-Dec-07 12:24
linksys20065-Dec-07 12:24 
GeneralRe: link error Pin
Don Box5-Dec-07 17:41
Don Box5-Dec-07 17:41 
GeneralRe: link error Pin
linksys20066-Dec-07 12:12
linksys20066-Dec-07 12:12 
QuestionHow do I get rid of a DLL out of my project? Pin
Tim_at_sbc5-Dec-07 11:32
Tim_at_sbc5-Dec-07 11:32 
AnswerRe: How do I get rid of a DLL out of my project? Pin
Tim_at_sbc5-Dec-07 12:46
Tim_at_sbc5-Dec-07 12:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.