Splash Screens

This is a discussion on Splash Screens within the Windows Programming forums, part of the Platform Specific Boards category; How do I make a splash screen which is just a single bitmap which is already loaded into thr resources ...

  1. #1
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052

    Splash Screens

    How do I make a splash screen which is just a single bitmap which is already loaded into thr resources of the program?
    Please direct all complaints regarding this post to the nearest brick wall Have a nice day.

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    421
    read the FAQ.!!

    create a window.
    load the bitmap
    resize the window to the same size as the bitmap
    draw the bitmap on the window.
    Quidquid latine dictum sit, altum sonatur.
    Whatever is said in Latin sounds profound.

  3. #3
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    ...but I want to display the bitmap without the above title bar or anything like that. Maybe I should create the window with certain flags specified so that nothing but the bitmap appears, but which ones?

    I can always make it so that it destroys it after a certain amount of time or the user sends a message like the mouse button, so don't worry about explaining that to me
    Please direct all complaints regarding this post to the nearest brick wall Have a nice day.

  4. #4
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    I am interested in this too.

    The link on the FAQ doesn't work.

  5. #5
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    set up the window class so it doesnt have a tite bar or border then put it on a timer, after the time expires send it the destroy message
    Monday - what a way to spend a seventh of your life

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


    I wrote a prog a while back that shows how to use a splash screen with a bmp in it, the bmps a little crap but it shoudnt matter, I will just upload the .cpp file, you should be able to make the resource and import the bmp you selves.

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

  7. #7
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Originally posted by iain
    set up the window class so it doesnt have a tite bar or border then put it on a timer, after the time expires send it the destroy message
    iain, I don't think you want to do a splash screen like this. The reason for a splash screen is so the user (the lucky person using your app) doesn't have to stare at an hourglass while you program loads up. The splash screen comes up first and then when the program is loaded, you destroy the splash. So, you would call DestroyWindow at the end of the main WndProc's WM_CREATE message handling. That way it's accurate. Using the timer won't do anything for you excep inaccurate results...

    Garfield
    1978 Silver Anniversary Corvette

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. Splash screen in borland C++ builder
    By paulovitorbal in forum C++ Programming
    Replies: 11
    Last Post: 11-28-2006, 02:13 AM
  3. Splash Screen not centered
    By BianConiglio in forum Windows Programming
    Replies: 5
    Last Post: 04-11-2004, 01:41 PM
  4. Screens of Projects
    By Perspective in forum Game Programming
    Replies: 29
    Last Post: 08-20-2003, 07:05 PM
  5. Splash Screen in C++
    By Perica in forum C++ Programming
    Replies: 7
    Last Post: 10-04-2002, 05:26 PM

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