DISPLAYING SPLASH SCREEN ???

How to display a splash screen(dialog) just before display of the  main screen(dialog) ??
i am using ms vc++ 4.0.

thanks !
kashif063098Asked:
Who is Participating?
 
thresher_sharkConnect With a Mentor Commented:
Okay, I'm glad you got it working.  Glad I could help!
0
 
thresher_sharkCommented:
Here is what I do:

1) Create a dialog box.  Make it have no title bar, menus, etc.
2) Put some icon/bmp/image and text in it.  Whatever you want it to say.
3) Before your main window is drawn, display the dialog box using the "Create" function.  This way the box is "modeless" and the program can continue processing in the background.

If you want to be ambitious, create a separate thread for the dialog box.
0
 
prasanthCommented:
I may be wrong and this might only be in 5.0+ but even in 4.x I think there is a prebuilt Splash screen component you can add to your project by going to the Project menu. After adding this component to your porject you just need to modify the bitmap to suit your needs.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
thresher_sharkCommented:
I hadn't ever seen that.  But I am fairly new to VC++ as well... have you tried either method kashif?
0
 
thresher_sharkCommented:
I hadn't ever seen that.  But I am fairly new to VC++ as well... have you tried either method kashif?
0
 
kashif063098Author Commented:
thresher_shark,

i am going to try both tomorrow at work,
thanks for helping me out !



0
 
thresher_sharkCommented:
Hmm... just so you know, I tried adding the splash screen component that prasanth mentioned (which was a good idea), but it only seems to work if you have an MDI or SDI application.  It does not work with dialog.  If you need help implementing my idea, I can give you precise instructions.
0
 
thresher_sharkCommented:
Hmm... just so you know, I tried adding the splash screen component that prasanth mentioned (which was a good idea), but it only seems to work if you have an MDI or SDI application.  It does not work with a dialog based application.  If you need help implementing my idea, I can give you precise instructions.
0
 
thresher_sharkCommented:
AHHH!! Sorry about these duplicate posts, EE keeps giving me errors so I keep reposting...
0
 
kashif063098Author Commented:
thresher_shark,
i tried your frst solution and it worked. i don't have any option to give you the points,i think you need to select answer "instead of comment then i will be able to give you the points.

thank you very much for the help ALL !


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.