Solved

How can I fade a bitmap image in and out on my splash screen

Posted on 2004-08-31
3
327 Views
Last Modified: 2013-11-20
I am trying to create a splash screen where the letters (Which are in a Bitmap image) fade in, spelling out the name of the program.  I don't mind going to the extra trouble to make seperate bitmap images for each letter to fade in on a white background.  I am currently using this code to draw splash graphics:

void CSplashWnd::OnPaint()
{
      CPaintDC dc(this);

      CDC dcImage;
      if (!dcImage.CreateCompatibleDC(&dc))
            return;

      BITMAP bm;
      m_bitmap.GetBitmap(&bm);

      // Paint the image.
      CBitmap* pOldBitmap = dcImage.SelectObject(&m_bitmap);
      dc.BitBlt(0, 0, bm.bmWidth, bm.bmHeight, &dcImage, 0, 0, SRCCOPY);
}

Any help would be greatly appreciated.
Thanks
0
Comment
Question by:bigsteve87
  • 2
3 Comments
 

Author Comment

by:bigsteve87
ID: 11946263
If possible, I would like to fade in a 24-bit .bmp, but this may be too difficult.  256 color .bmp is fine.
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 11947083
0
 

Author Comment

by:bigsteve87
ID: 11952205
Great, thanks.  I found an example of exactly what I need.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Separate files macro - Errors on larger data set 18 70
ORA-01403: no data found 43 101
maven archtype selection in eclipse 1 57
move a line in eclipse 3 103
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question