Click here to Skip to main content
Click here to Skip to main content

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

Comments and Discussions

GeneralGreat !!! Pinmember4you17-Feb-05 2:11 
GeneralA bug report and modify way PinmemberZhaolei13-Jan-05 15:14 
GeneralRe: A bug report and modify way Pinmembery_yy200820-Dec-08 18:48 
GeneralKillTimer PinmemberAlex Evans8-Jul-04 23:14 
Generalbetter fade out without space bending Pinmemberbotsjeh22-Aug-03 0:47 
GeneralStalling bug detected PinmemberEmcee Lam18-Oct-02 11:06 
GeneralRe: Stalling bug detected Pinmembersanghyun yi18-May-03 16:15 
GeneralRe: Stalling bug detected PinmemberAdam Wimsatt28-Oct-03 12:18 
GeneralGREAT! PinsussAnonymous30-Jul-02 2:00 
GeneralWould be better in OpenGL Pinmembera.r.f.28-Jul-02 18:58 
GeneralRe: Would be better in OpenGL Pinmembervsoft11-Aug-02 13:31 
QuestionAny port to C#? PinmemberLuis Alonso Ramos28-Jul-02 10:53 
AnswerRe: Any port to C#? PinmemberFilus18-Sep-07 5:32 
GeneralAnother suggestion PinmemberBin26-Jul-02 23:25 
GeneralProgrammed like a real Jedi Master!! PinmemberWREY22-Jul-02 0:11 
GeneralSuggestion PinmemberRavi Bhavnani19-Jul-02 18:18 
GeneralYou are so right: Always code the important things first :-) PinmemberDaniel Lohmann19-Jul-02 3:46 
GeneralI like it Pinmemberbenjymous19-Jul-02 2:13 
GeneralRe: I like it PinmemberColin Davies19-Jul-02 21:50 
GeneralRe: I like it PinmemberWREY22-Jul-02 0:40 
GeneralRe: I like it PinmemberLuis Alonso Ramos28-Jul-02 10:47 
GeneralRe: I like it PinmemberWREY28-Jul-02 21:12 
GeneralRe: I like it PinmemberNGS 54967229-Jul-02 8:10 
GeneralRe: I like it PinmemberG. Steudtel21-Aug-03 2:15 
GeneralRe: I like it PinmemberWREY21-Aug-03 9:37 
GeneralRe: I like it PinmemberZerox77713-Sep-03 12:29 
GeneralRe: I like it PinmemberWREY14-Sep-03 15:11 
GeneralRe: I like it Pinmemberdoublej13-Feb-04 4:59 
GeneralRe: I like it PinmemberRiceking16-Jun-05 11:25 
GeneralRe: I like it PinmemberAdam Wimsatt28-Oct-03 12:15 
GeneralRe: I like it PinmemberColin Leitner29-Jul-02 8:28 
GeneralVery nice PinmemberMichael P Butler19-Jul-02 0:15 
GeneralYeah... PinmemberStefan Spenz19-Jul-02 0:12 
GeneralA Real Beauty PinmemberSantosh Rao18-Jul-02 19:25 
GeneralExcellent! PinmemberRavi Bhavnani18-Jul-02 18:51 
GeneralThis is so cool! PinmemberJason Henderson18-Jul-02 18:49 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150301.1 | Last Updated 18 Jul 2002
Article Copyright 2002 by Pablo van der Meer
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid