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