CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    10

    How to erase background while drawing text

    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.



  2. #2
    Join Date
    Apr 1999
    Location
    Delhi, India
    Posts
    32

    Re: How to erase background while drawing text

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured