mfc >> MFC beginner question

by calendarw@gmail.com » Thu, 23 Mar 2006 16:42:49 GMT

Hi,
I want to bulid a MFC Dialog program that display a full screen image
5 sec, I tried to use VC to do it but I don't know where I can paste
the code in.(Becase I haven't use MFC before) The program is no
action(I don't know where is the main()), it is just for Sleep(5000),
so where can I paste the code there? any how to add image into Dialog?

Thanks for help

calendarw



mfc >> MFC beginner question

by Ajay Kalra » Thu, 23 Mar 2006 19:37:54 GMT






To add image to a dialog, you can insert a picture control in it (which is
CStatic) and associate the image to this control in resource editor. At run
time, start a timer for 5 sec. In timer's callback, you can simply hide this
CStatic.

Are you by any chance talking about splash screen?





mfc >> MFC beginner question

by calendarw » Fri, 24 Mar 2006 10:08:40 GMT

yes, something like splash screen to display a logo.

ar... how to set the image into it?
I want to add a bitmap but I can't add path in the "image" of image
properties, so how to do this?



MFC beginner question

by Ajay Kalra » Fri, 24 Mar 2006 10:22:20 GMT

There are sevral examples that you can find at codeguru/codeproject.
Here are some:

http://www.codeproject.com/dialog/splasher.asp
http://www.codeproject.com/miscctrl/csplashscreenex.asp
http://www.codeproject.com/dialog/CSplashWnd_Extended.asp

---------
Ajay Kalra
XXXX@XXXXX.COM



MFC beginner question

by calendarw » Fri, 24 Mar 2006 10:47:00 GMT

Thanks a lot
But if I want to display a image 5 sec and then execute a batch file,
how to do this?



MFC beginner question

by Ajay Kalra » Fri, 24 Mar 2006 11:07:49 GMT

As I had mentioned earlier, set a timer for 5 sec and then hide/destroy
the splash screen and execute your batch file. Typically splash screen
that you are using already has some timer feature in it. All you will
need to do is set it to 5 secs.

--------
Ajay Kalra
XXXX@XXXXX.COM



Similar Threads

1. a question from a beginner pocketpc developer (MFC and OpenGL ES) - Windows CE

2. Book for a windows/c++/mfc beginner...

Hi,

I have previous coding experience, but not in the windows environment and 
not in C/C++.

I have just got a copy of MS Visual C++ Express and want to learn how to 
code C++ for Windows.  As I understand it I need to use MFC for the windows 
stuff, and without it Visual C++ would just be command prompt based?  Is 
that correct?

If so then I need a book that teaches me MFC and C++, preferably in the 
Visual C++ environment... Which is the best book/books for this?

Thanks. 


3. Pls, help a beginner(MFC)

4. Beginners book in MFC

Am looking for a beginners book in MFC. Something that would teach me ODBC, 
threads, DCOM, etc with MFC. Can some people give me recommendation on a 
good book.

Cheers 


5. beginner help on api and MFC

6. Tutorial for beginner/ Tutorial voor beginner

Hello, does someone have / know a good C++ tutorial for beginnners? I would prefer Dutch, but English is also fine.

Hoi, heeft / kent iemand nog een goede C++ tutorial voor beginners? Het liefste in Nederlands, maar Engels is ook goed.

Thnx,
Rensjuh

7. General question from a beginner to Windows C++ programming