Click to See Complete Forum and Search --> : How to erase background while drawing text


pakas
May 17th, 1999, 05:26 PM
hi,
I m working on application which requires automatic scrolling text in a cycle.I m using doc/view for this.I am using WM_TIMER message n drawing the text..but while drawing text on WM_TIMER message its not erasing the previous drawn text..
Thanks in advance.

Rajaraman
May 18th, 1999, 04:14 AM
I assume you are talking about a marquee-like object, scrolling text from left to right. Suppose you are drwing text in black, on a white background.
When the timer ticks, first choose a white pen and draw the same text at the same location. This erases the previous text. Then choose a black pen and draw the new text at the new location.

Rajaraman