Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCListCtrl won't update as expected Pin
Vaclav_31-Mar-10 5:56
Vaclav_31-Mar-10 5:56 
AnswerRe: CListCtrl won't update as expected Pin
Code-o-mat31-Mar-10 6:14
Code-o-mat31-Mar-10 6:14 
GeneralRe: CListCtrl won't update as expected Pin
Vaclav_31-Mar-10 6:39
Vaclav_31-Mar-10 6:39 
GeneralRe: CListCtrl won't update as expected Pin
Maximilien31-Mar-10 6:54
Maximilien31-Mar-10 6:54 
GeneralRe: CListCtrl won't update as expected Pin
David Crow31-Mar-10 7:56
David Crow31-Mar-10 7:56 
GeneralRe: CListCtrl won't update as expected Pin
Code-o-mat31-Mar-10 10:31
Code-o-mat31-Mar-10 10:31 
GeneralRe: CListCtrl won't update as expected Pin
Vaclav_31-Mar-10 14:05
Vaclav_31-Mar-10 14:05 
AnswerRe: CListCtrl won't update as expected Pin
Maximilien31-Mar-10 6:45
Maximilien31-Mar-10 6:45 
When dealing with a large number of items in a list ( CListBox, CListCtrl), it is best to learn how to use virtual list boxes (owner drawn lists ) ( read this :virtual lists[^] )

This technique will remove most (if not all) performance issues, mostly when inserting a large number of items at one time in the list.

Another suggestion if you just want to "make it work" is to disable the drawing when inserting items in the list with CWnd::LockWindowUpdate and CWnd::UnlockWindowUpdate.
Watched code never compiles.

GeneralRe: CListCtrl won't update as expected Pin
Vaclav_31-Mar-10 7:13
Vaclav_31-Mar-10 7:13 
AnswerRe: CListCtrl won't update as expected Pin
krmed31-Mar-10 7:05
krmed31-Mar-10 7:05 
GeneralRe: CListCtrl won't update as expected SOLVED with a hack Pin
Vaclav_31-Mar-10 7:30
Vaclav_31-Mar-10 7:30 
GeneralRe: CListCtrl won't update as expected SOLVED with a hack Pin
Maximilien31-Mar-10 7:34
Maximilien31-Mar-10 7:34 
GeneralRe: CListCtrl won't update as expected SOLVED with a hack Pin
Vaclav_31-Mar-10 7:44
Vaclav_31-Mar-10 7:44 
AnswerRe: CListCtrl won't update as expected Pin
David Crow31-Mar-10 7:58
David Crow31-Mar-10 7:58 
GeneralRe: CListCtrl won't update as expected Pin
Vaclav_31-Mar-10 8:17
Vaclav_31-Mar-10 8:17 
GeneralRe: CListCtrl won't update as expected Pin
David Crow31-Mar-10 8:24
David Crow31-Mar-10 8:24 
GeneralRe: CListCtrl won't update as expected Pin
Vaclav_31-Mar-10 8:51
Vaclav_31-Mar-10 8:51 
QuestionProblem in c atof Pin
RakeshManohar31-Mar-10 4:12
RakeshManohar31-Mar-10 4:12 
AnswerRe: Problem in c atof Pin
Maximilien31-Mar-10 4:20
Maximilien31-Mar-10 4:20 
AnswerRe: Problem in c atof Pin
Cedric Moonen31-Mar-10 4:28
Cedric Moonen31-Mar-10 4:28 
QuestionRe: Problem in c atof Pin
David Crow31-Mar-10 4:48
David Crow31-Mar-10 4:48 
QuestionSerial Port configuration Pin
rick742331-Mar-10 3:59
rick742331-Mar-10 3:59 
AnswerRe: Serial Port configuration Pin
Jonathan Davies31-Mar-10 4:14
Jonathan Davies31-Mar-10 4:14 
AnswerRe: Serial Port configuration Pin
jeron131-Mar-10 5:19
jeron131-Mar-10 5:19 
GeneralRe: Serial Port configuration Pin
rick742331-Mar-10 5:32
rick742331-Mar-10 5:32 

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.