Star Wars Credits ControlCStarWarsCtrl
Posted
by Pablo van der Meer
on August 7th, 2002

This is an attempt to create a control which looks like the credits of the Star Wars movies. I've used a few simple GDI functions to establish this effect: Ellipse() for the stars in the background and StretchBlt() for scrolling text. The control is devired from CStatic.
Here is how you use this class:
- Insert the .h and .cpp files into your project.
- Add a static control into your dialog resource.
- Add a member variable for that static control.
- Modify the variable declaration.
- In your InitDialog message handler set the speed and add some text. Use these member functions:
Change this:
CStatic m_StarWarsCtrl;
To this:
CStarWarsCtrl m_StarWarsCtrl;
m_StarWarsCtrl.SetStarSpeed(30);
m_StarWarsCtrl.SetScrollSpeed(2);
m_StarWarsCtrl.AddTextLine("A long time ago");
m_StarWarsCtrl.AddTextLine("");
m_StarWarsCtrl.AddTextLine("in a galaxy far far away");
m_StarWarsCtrl.AddTextLine("");
m_StarWarsCtrl.AddTextLine("this application was programmed by");
m_StarWarsCtrl.AddTextLine("");
m_StarWarsCtrl.AddTextLine("Pablo van der Meer");
m_StarWarsCtrl.AddTextLine("");
For more cool projects visit: Pablo Software Solutions.
Downloads
Download demo executable - 8 KbDownload source - 15 Kb

Comments
Cool...but it doesn't work on XP...
Posted by Legacy on 08/14/2003 12:00amOriginally posted by: Jose Ramos
ReplyIt is sooooo cool
Posted by Legacy on 09/05/2002 12:00amOriginally posted by: Rob A. Fraydl
Congratulation for this cool stuff. May be the force with you...
ReplyNice Effort
Posted by Legacy on 08/16/2002 12:00amOriginally posted by: Atif
Well This is a nice effort and very good animation
Reply10 out of 10
Posted by Legacy on 08/14/2002 12:00amOriginally posted by: Stephen Muires
Te gek!
ReplyWhats 'Star Wars'?
Posted by Legacy on 08/13/2002 12:00amOriginally posted by: TJ
Just kidding.
Replyheh, heh.
Kick Ass!
Posted by Legacy on 08/09/2002 12:00amOriginally posted by: Tim Stubbs
Love it :) Thanks a lot for posting it here :)
ReplyCOOL~
Posted by Legacy on 08/08/2002 12:00amOriginally posted by: Franz
I have looked for something like that for a long time.
Reply
Grrrrrrrrrrrrrrreat :o)
Posted by Legacy on 08/07/2002 12:00amOriginally posted by: Eric
Really nice work!!! REally COOL!!!
Impressive...
Eric
Reply