Thread: Splash screen

  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    38

    Splash screen

    Hey guys, I want to add a splash screen to my dialog project, but when I searched on codeproject and google, everything that came up was for a MFC project. Is there anyways of doing it without using classes?

  2. #2
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    Absolutely. A lot depends how fancy you want:
    1) The GIMP has a splash that has title bar, window border, progress bar, and image. Fairly simple.
    2) OpenOffice has merely an image (with custom progress bar) with no window borders/title bar.
    3) Adobe has image with transparent areas, lots of fancy pants stuff.

    Don't get too carried away with the splash - go with 1 or 2. Users aren't running your program to see a splash screen. They're usually just there to give a pretty image while something loads. The quicker it loads, and gets to business, the better.

    The Win32 API has everything you need. (You need to know how to create/manage windows, and a basic knowledge of Windows programming. If you don't, leave the splash screen for another day, and read tutorials.) Otherwise, it's just a matter of hiding stuff. Just leaving off the caption (don't specify WS_CAPTION) is the first easiest step. To display your picture, include a bitmap as a resource in your executable, and use a static control. (Specify STATIC, no quotes, as the classname to CreateWindow(Ex) - or just create a dialog resource with one.)
    Start with just a window with a picture in it, and work from there.
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

  3. #3
    Registered User
    Join Date
    Mar 2007
    Posts
    38
    Quote Originally Posted by Cactus_Hugger View Post
    Don't get too carried away with the splash - go with 1 or 2. Users aren't running your program to see a splash screen. They're usually just there to give a pretty image while something loads. The quicker it loads, and gets to business, the better.
    Thanks a lot, I got it to work. And it was only to see how it works, for my own experience.

  4. #4
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Quote Originally Posted by Cactus_Hugger View Post
    Just leaving off the caption (don't specify WS_CAPTION) is the first easiest step.
    Not specifying WS_CAPTION doesn't help. You need to use WS_POPUP style.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  5. #5
    Registered User pronecracker's Avatar
    Join Date
    Oct 2006
    Location
    netherlands
    Posts
    158
    (Specify STATIC, no quotes, as the classname to CreateWindow(Ex) - or just create a dialog resource with one.)
    Ehm, why without quotes? "static" does work?

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