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?
Printable View
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?
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.
Ehm, why without quotes? "static" does work?Quote:
(Specify STATIC, no quotes, as the classname to CreateWindow(Ex) - or just create a dialog resource with one.)