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