Clearing a Screen of Controls

This is a discussion on Clearing a Screen of Controls within the Windows Programming forums, part of the Platform Specific Boards category; Hi guys, I was wondering if there was an easy way of clearing a screen that had controls setup on ...

  1. #1
    Registered User
    Join Date
    Apr 2007
    Location
    In my house
    Posts
    29

    Clearing a Screen of Controls

    Hi guys, I was wondering if there was an easy way of clearing a screen that had controls setup on it, like editboxes and static controls and all of the other Windows class structures there are

    Thanks in advance for the help

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    903
    ShowWindow(hControl, FALSE);

    Or something similar. I haven't programmed in a while.

  3. #3
    Registered User
    Join Date
    Dec 2006
    Location
    Scranton, Pa
    Posts
    252
    I'm not certain why boolean values work, but they do. I think correctly it should be SW_SHOW or SW_HIDE.

    I tend to do it both ways....

  4. #4
    Registered User
    Join Date
    May 2006
    Posts
    903
    I'm sorry, this is a bad habit I've taken. SW_HIDE must be defined as 0. I'm not even sure this is guaranteed to be true. SW_HIDE and SW_SHOW are better.

  5. #5
    Registered Abuser
    Join Date
    Jun 2006
    Location
    Toronto
    Posts
    591
    then use this repeatedly in conjuction with EnumChildWindows
    Last edited by @nthony; 04-15-2007 at 06:55 PM. Reason: EnumChildWindows

  6. #6
    Registered User
    Join Date
    Apr 2007
    Location
    In my house
    Posts
    29
    Thanks guys I think I know how I am going to do it now

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM
  2. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  3. clearing the screen
    By ssharish in forum C Programming
    Replies: 2
    Last Post: 02-01-2005, 09:00 PM
  4. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 03:41 AM
  5. Clearing the screen
    By Shadow in forum C Programming
    Replies: 4
    Last Post: 05-23-2002, 02:40 PM

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