High Speed Text Control

B

Brian C

Hello all,
I've been getting back into Windows based graphical applications after
working on pure servers for work. I'm working on a utility that connects
into my servers at work (they use the same message format) and just
simply sends data into them and displays results (one message in from me
could result in millions of asynchronous replies back from the server
over the course of a day, etc). I use it to test.
I currently have a Java app that does this and outputs via the console.
I wanted to port it to MFC to add features and get reacquainted with
MFC. I tried a CEdit, but it seems too slow and cumbersome
(getwindowtext(), append(), setwindowtext(), setscrolline()). Is there
another way around CEdit?
Or perhaps another control out there already?
 
M

Mihai N.

I wanted to port it to MFC to add features and get reacquainted with
MFC. I tried a CEdit, but it seems too slow and cumbersome
(getwindowtext(), append(), setwindowtext(), setscrolline()). Is there
another way around CEdit?
Try SetSel( –1, –1, ... ) followed by ReplaceSel( lpszNewText, ... )
You have to decide if you want to scroll (in SetSel) and you want undo (in
ReplaceSel). Both scrolling and undo can affect speed.
 
B

Brian C

Mihai said:
Try SetSel( –1, –1, ... ) followed by ReplaceSel( lpszNewText, ... )
You have to decide if you want to scroll (in SetSel) and you want undo (in
ReplaceSel). Both scrolling and undo can affect speed.
I'll try that. I do need the scrolling, and I need it to scroll down as
new data comes in which I had working. I do not need an undo, this is
just a display.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top