Animated Background Banner

Used to display an Animated Banner using the the CmdiMainClient class

provided by: 
Originally published at Internet.com




The following code is used to display an Animated Banner using the the CmdiMainClient class. You will need to get a set of sequenced bitmaps to show the animation. In my example you can Right-Click to Start/Stop the animation and Left-Click to display a child window, keeping the background animation alive.

For your convenience, the code can be copied and pasted from your browser or downloaded (.zip format). #include "stdafx.h" #include "banner.h" #include "mainfrm.h" #include "resource.h" #ifdef _DEBUG #undef THIS_FILE static char BASED_CODE THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CMdiMainClient CMdiMainClient::CMdiMainClient() : m_sizeClient(0, 0) { VERIFY (m_bmpBackGround.LoadBitmap(IDB_BCKGRD)); ASSERT (m_bmpBackGround.GetSafeHandle()); VERIFY (m_bmpBackGround2.LoadBitmap(IDB_BITMAP0)); ASSERT (m_bmpBackGround2.GetSafeHandle()); BmpLoaded = 1; StopRotation = FALSE; } CMdiMainClient::_1_CMdiMainClient() { if(m_bmpBackGround.GetSafeHandle()) m_bmpBackGround.DeleteObject(); if(m_bmpBackGround2.GetSafeHandle

Read article at Internet.com site
Related Articles
- CSS Sprites
Looking to improve the performance of your site? Learn how to combine all of those tiny 1k styling images into a couple CSS sprites.
- CNewLabel : Advanced CStatic-Derived Class
- C# Tips and Tricks
Regional Articles
- Animated Background Banner Alabama
- Animated Background Banner Alaska
- Animated Background Banner Arizona
- Animated Background Banner Arkansas
- Animated Background Banner California
- Animated Background Banner Colorado
- Animated Background Banner Connecticut
- Animated Background Banner DC
- Animated Background Banner Delaware
- Animated Background Banner Florida
- Animated Background Banner Georgia
- Animated Background Banner Hawaii
- Animated Background Banner Idaho
- Animated Background Banner Illinois
- Animated Background Banner Indiana
- Animated Background Banner Iowa
- Animated Background Banner Kansas
- Animated Background Banner Kentucky
- Animated Background Banner Louisiana
- Animated Background Banner Maine
- Animated Background Banner Maryland
- Animated Background Banner Massachusetts
- Animated Background Banner Michigan
- Animated Background Banner Minnesota
- Animated Background Banner Mississippi
- Animated Background Banner Missouri
- Animated Background Banner Montana
- Animated Background Banner Nebraska
- Animated Background Banner Nevada
- Animated Background Banner New Hampshire
- Animated Background Banner New Jersey
- Animated Background Banner New Mexico
- Animated Background Banner New York
- Animated Background Banner North Carolina
- Animated Background Banner North Dakota
- Animated Background Banner Ohio
- Animated Background Banner Oklahoma
- Animated Background Banner Oregon
- Animated Background Banner Pennsylvania
- Animated Background Banner Rhode Island
- Animated Background Banner South Carolina
- Animated Background Banner South Dakota
- Animated Background Banner Tennessee
- Animated Background Banner Texas
- Animated Background Banner Utah
- Animated Background Banner Vermont
- Animated Background Banner Virginia
- Animated Background Banner Washington
- Animated Background Banner West Virginia
- Animated Background Banner Wisconsin
- Animated Background Banner Wyoming
Related Articles
- CSS Sprites
Looking to improve the performance of your site? Learn how to combine all of those tiny 1k styling images into a couple CSS sprites.
- CNewLabel : Advanced CStatic-Derived Class
- C# Tips and Tricks

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML