Simple question

This is a discussion on Simple question within the Windows Programming forums, part of the Platform Specific Boards category; I'm just displaying text using the textout command but i can't remember how to clear the screen of the text ...

  1. #1
    Unregistered
    Guest

    Simple question

    I'm just displaying text using the textout command but i can't remember how to clear the screen of the text produced by the textout command, anyone know?

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    81
    Actually can someone give me a better alternative to useing textout? I just want to have a basic window with writing on the background. I have a menu and when u click one of the options it displays text, but every time you minamize it the text goes away and you can't use the \n command so you need to have many lines of the text out command. Is there a better way to display lots of text other than the textout command?

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    381
    If your only using text then you should look at using one a control. Like a text box or something.

  4. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    81
    ok i'll try that

  5. #5
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339
    Hey,

    Possibly better would be to use a Static control, then you can just SetWindowText(StaticH, ""); and the text is gone. Or if you want to completly clear the text you can just hide the control using showwindow(). You should be able to fiqure out what you need if you work with edit & static controls for displaying your text.

    Hope that helps,
    TNT
    TNT
    You Can Stop Me, But You Cant Stop Us All

  6. #6
    Registered User
    Join Date
    Oct 2001
    Posts
    81
    Can someone give me an example of a text box or one of the other controlls that this would work for, i tryed one but i'm getting errors, only doing it from memory and i think i left something out.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple question regarding variables
    By Flakster in forum C++ Programming
    Replies: 10
    Last Post: 05-18-2005, 08:10 PM
  2. Simple class question
    By 99atlantic in forum C++ Programming
    Replies: 6
    Last Post: 04-20-2005, 11:41 PM
  3. Simple question about pausing program
    By Noid in forum C Programming
    Replies: 14
    Last Post: 04-02-2005, 08:46 AM
  4. simple question.
    By InvariantLoop in forum Windows Programming
    Replies: 4
    Last Post: 01-31-2005, 11:15 AM
  5. simple fgets question
    By theweirdo in forum C Programming
    Replies: 7
    Last Post: 01-27-2002, 05:58 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21