Click here to Skip to main content
15,889,335 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How: each doc/view in own thread (advanced) Pin
EiSl13-Jul-01 0:45
EiSl13-Jul-01 0:45 
GeneralRe: How: each doc/view in own thread (advanced) Pin
Tomasz Sowinski13-Jul-01 1:08
Tomasz Sowinski13-Jul-01 1:08 
GeneralRe: How: each doc/view in own thread (advanced) Pin
Tomasz Sowinski13-Jul-01 1:31
Tomasz Sowinski13-Jul-01 1:31 
GeneralRe: How: each doc/view in own thread (advanced) Pin
#realJSOP13-Jul-01 1:41
mve#realJSOP13-Jul-01 1:41 
GeneralRe: How: each doc/view in own thread (advanced) Pin
EiSl13-Jul-01 3:12
EiSl13-Jul-01 3:12 
GeneralRe: How: each doc/view in own thread (advanced) Pin
#realJSOP13-Jul-01 7:29
mve#realJSOP13-Jul-01 7:29 
GeneralRe: How: each doc/view in own thread (advanced) Pin
EiSl15-Jul-01 19:47
EiSl15-Jul-01 19:47 
GeneralRe: How: each doc/view in own thread (advanced) Pin
#realJSOP16-Jul-01 0:29
mve#realJSOP16-Jul-01 0:29 
You'd probably be better off with a CFormview with a CListBox in it.

I'd be willing to bet that (with the CEditView) you are simply adding the newest message to the existing contents of the edit control. At first, performance is pretty good, but the longer the program runs, the worse less responsive the program gets.

If you change to a list box, you have better control over how much data is contained in the control (you could limit it to say 1000 lines). With an edit control, you have to call SetWindowText with a string that is larger each time. This takes a lot of processing time (a lot more time than adding a single string to a list box).

I would advise against using a list control unless you need multiple columns for some reason. A list box would be a better choice.
GeneralRe: How: each doc/view in own thread (advanced) Pin
EiSl16-Jul-01 21:41
EiSl16-Jul-01 21:41 
GeneralRe: How: each doc/view in own thread (advanced) Pin
#realJSOP17-Jul-01 1:53
mve#realJSOP17-Jul-01 1:53 
GeneralRe: How: each doc/view in own thread (advanced) Pin
Stephen C. Steel13-Jul-01 13:11
Stephen C. Steel13-Jul-01 13:11 
GeneralCOleDateTime Pin
12-Jul-01 23:19
suss12-Jul-01 23:19 
GeneralRe: COleDateTime Pin
markkuk13-Jul-01 8:12
markkuk13-Jul-01 8:12 
GeneralGetting parts of the Platform SDK Pin
12-Jul-01 23:15
suss12-Jul-01 23:15 
GeneralRe: Getting parts of the Platform SDK Pin
EiSl12-Jul-01 23:40
EiSl12-Jul-01 23:40 
GeneralStrange implementation in one of the samples... Pin
EiSl12-Jul-01 23:12
EiSl12-Jul-01 23:12 
GeneralCPropertySheet::RemovePage in MFC causes memory leak Pin
Serge Desmedt12-Jul-01 23:11
professionalSerge Desmedt12-Jul-01 23:11 
GeneralRe: CPropertySheet::RemovePage in MFC causes memory leak Pin
Tomasz Sowinski13-Jul-01 0:00
Tomasz Sowinski13-Jul-01 0:00 
GeneralRe: CPropertySheet::RemovePage in MFC causes memory leak Pin
Serge Desmedt13-Jul-01 5:33
professionalSerge Desmedt13-Jul-01 5:33 
GeneralSaving HICON to a file Pin
Deian12-Jul-01 22:45
Deian12-Jul-01 22:45 
GeneralWhy not delete the CSingleDocTemplate Pin
ndkk12-Jul-01 22:01
ndkk12-Jul-01 22:01 
GeneralProblem in RegQueryValueEx Pin
Yamuna12-Jul-01 21:35
Yamuna12-Jul-01 21:35 
GeneralByteBuffer Pin
12-Jul-01 21:12
suss12-Jul-01 21:12 
GeneralRe: ByteBuffer Pin
Tomasz Sowinski13-Jul-01 0:20
Tomasz Sowinski13-Jul-01 0:20 
GeneralScrollview & Zoom Pin
12-Jul-01 20:14
suss12-Jul-01 20:14 

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.