How do I make a splash screen which is just a single bitmap which is already loaded into thr resources of the program?
How do I make a splash screen which is just a single bitmap which is already loaded into thr resources of the program?
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.
...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
I am interested in this too.
The link on the FAQ doesn't work.
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
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
TNT
You Can Stop Me, But You Cant Stop Us All
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...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
Garfield
1978 Silver Anniversary Corvette