Thread: Splash Screen in C++

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    70

    Splash Screen in C++

    Hey,

    I use Microsoft Visual C++ 6. How can i make a splash scrren when my Windows Program Starts?? (Just Display an image at the start of the program) and can i make the splash screen pause, that means force it to stay on the screen, for about 3 seconds.

    And also, can i make splash screens in Console Applications??

    Please post a reply soon.

    ciao.

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    same way you make any other window. and the pause would be done with SetTimer() and WM_TIMER
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    have the window (with the spash image) created at the start of the program's WM_CREATE msg and destroyed at the end of it, that was the original idea of the splash image: to entertain the user while the program is starting up...

  4. #4
    Registered User
    Join Date
    Sep 2002
    Posts
    70
    Ok,

    but i don't know how to use the SetTimer(); Function, could you post an example (i'm a newbie with C++)

    & Can i make the window in console mode?

    ciao.

  5. #5
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    you said windows app. in that case you don't want to do console mode otherwise you'll have the console window open in the background(very wierd). SetTimer info can be found at http://msdn.microsoft.com/library along with every other API that you may need to learn to do windows apps
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  6. #6
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    This isn't the answer you are looking for but in
    general I find splash screens extremly anoying.

  7. #7
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    they are starting to be used less often too. It used to be that if you did a bunch of LoadLibrary() calls you would do them while the splash screen was up. This made the splash actually serve a purpose. When it's done on a timer and just kind of waits... that's silly.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  8. #8
    Registered User
    Join Date
    Sep 2002
    Posts
    70
    thank's for your help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems with splash screen
    By h3ro in forum Windows Programming
    Replies: 13
    Last Post: 08-31-2008, 10:16 AM
  2. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM
  3. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 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, 02:41 AM
  5. Splash Screen not centered
    By BianConiglio in forum Windows Programming
    Replies: 5
    Last Post: 04-11-2004, 01:41 PM