Click here to Skip to main content
13,633,298 members
Click here to Skip to main content
Add your own
alternative version


76 bookmarked
Posted 17 Jul 2002

CStarWarsCtrl - Star Wars Credits Control

, 17 Jul 2002
Rate this:
Please Sign up or sign in to vote.
This is an attempt to create a control which looks like the credits of the Star Wars movies.

Sample Image


This is an attempt to create a control which looks like the credits of the Star Wars movies. Only a few simple GDI functions are used to establish this effect: Ellipse for the stars in the background and StretchBlt for scrolling text. The control is derived from CStatic.


To use the class in your application you need to do the following:

  1. Insert the .h and .cpp files into your project.
  2. Add a static control into your dialog resource.
  3. Add a member variable for that static control.
  4. Initialize the eventsink
  5. Modify the variable declaration.

  6. Change this:
    CStatic m_StarWarsCtrl; 
    To this:
    CStarWarsCtrl m_StarWarsCtrl; 
  7. In your InitDialog message handler set the speed and add some text. Use these member functions:
  8. m_StarWarsCtrl.SetStarSpeed(30);
    m_StarWarsCtrl.AddTextLine("A long time ago");
    m_StarWarsCtrl.AddTextLine("in a galaxy far far away");
    m_StarWarsCtrl.AddTextLine("this application was programmed by");
    m_StarWarsCtrl.AddTextLine("Pablo van der Meer");

Contacting the Author

Please send any comments or bug reports to me via email. For any updates to this article, check my site here.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Pablo van der Meer
Web Developer
Netherlands Netherlands
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralGreat !!! Pin
4you17-Feb-05 1:11
member4you17-Feb-05 1:11 
GeneralA bug report and modify way Pin
Zhaolei13-Jan-05 14:14
memberZhaolei13-Jan-05 14:14 
GeneralRe: A bug report and modify way Pin
y_yy200820-Dec-08 17:48
membery_yy200820-Dec-08 17:48 
GeneralKillTimer Pin
Alex Evans8-Jul-04 22:14
memberAlex Evans8-Jul-04 22:14 
Generalbetter fade out without space bending Pin
botsjeh21-Aug-03 23:47
memberbotsjeh21-Aug-03 23:47 
GeneralStalling bug detected Pin
Emcee Lam18-Oct-02 10:06
memberEmcee Lam18-Oct-02 10:06 
GeneralRe: Stalling bug detected Pin
sanghyun yi18-May-03 15:15
membersanghyun yi18-May-03 15:15 
GeneralRe: Stalling bug detected Pin
Adam Wimsatt28-Oct-03 11:18
memberAdam Wimsatt28-Oct-03 11:18 
GeneralGREAT! Pin
Anonymous30-Jul-02 1:00
sussAnonymous30-Jul-02 1:00 
GeneralWould be better in OpenGL Pin
a.r.f.28-Jul-02 17:58
membera.r.f.28-Jul-02 17:58 
GeneralRe: Would be better in OpenGL Pin
vsoft11-Aug-02 12:31
membervsoft11-Aug-02 12:31 
QuestionAny port to C#? Pin
Luis Alonso Ramos28-Jul-02 9:53
memberLuis Alonso Ramos28-Jul-02 9:53 
AnswerRe: Any port to C#? Pin
Filus18-Sep-07 4:32
memberFilus18-Sep-07 4:32 
GeneralAnother suggestion Pin
Bin26-Jul-02 22:25
memberBin26-Jul-02 22:25 
GeneralProgrammed like a real Jedi Master!! Pin
WREY21-Jul-02 23:11
memberWREY21-Jul-02 23:11 
GeneralSuggestion Pin
Ravi Bhavnani19-Jul-02 17:18
memberRavi Bhavnani19-Jul-02 17:18 
GeneralYou are so right: Always code the important things first :-) Pin
Daniel Lohmann19-Jul-02 2:46
memberDaniel Lohmann19-Jul-02 2:46 
GeneralI like it Pin
benjymous19-Jul-02 1:13
memberbenjymous19-Jul-02 1:13 
GeneralRe: I like it Pin
Colin Davies19-Jul-02 20:50
memberColin Davies19-Jul-02 20:50 
GeneralRe: I like it Pin
WREY21-Jul-02 23:40
memberWREY21-Jul-02 23:40 
GeneralRe: I like it Pin
Luis Alonso Ramos28-Jul-02 9:47
memberLuis Alonso Ramos28-Jul-02 9:47 
GeneralRe: I like it Pin
WREY28-Jul-02 20:12
memberWREY28-Jul-02 20:12 
GeneralRe: I like it Pin
NGS 54967229-Jul-02 7:10
memberNGS 54967229-Jul-02 7:10 
GeneralRe: I like it Pin
G. Steudtel21-Aug-03 1:15
memberG. Steudtel21-Aug-03 1:15 
GeneralRe: I like it Pin
WREY21-Aug-03 8:37
memberWREY21-Aug-03 8:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web04-2016 | 2.8.180712.1 | Last Updated 18 Jul 2002
Article Copyright 2002 by Pablo van der Meer
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid