How to get CEdit to scroll properly?

Posted by CSharperWithJava on Stack Overflow See other posts from Stack Overflow or by CSharperWithJava
Published on 2009-10-06T15:36:50Z Indexed on 2010/03/24 17:03 UTC
Read the original article Hit count: 383

Filed under:
|
|
|

I have a CEdit control that's used to display a diagnostics output.
Sometimes the data overflows the screen size, so naturally I set the Vertical Scroll property to true (MFC dialog editor).

But then, when I tried to scroll the text that was in the window before isn't cleared and the new text is written over it.

The result is a big mess of everything I have scrolled past.

I've looked for a draw background property or something similar that will erase everything in the window while scrolling (before redrawing the new data).

Any suggestions?

© Stack Overflow or respective owner

Related posts about mfc

Related posts about cedit