Click here to Skip to main content
15,886,199 members
Articles / Desktop Programming / MFC
Article

CAboutCtrl - Aboutbox Credits Control

Rate me:
Please Sign up or sign in to vote.
4.67/5 (15 votes)
18 Jul 2002 89.3K   1.9K   41   12
This control can be use as an about box for your applications

Sample Image

Description:

This is a yet another control which can be use as an aboutbox for your applications. The control is derived from CStatic and is made up out of three parts:

  1. A background image
  2. Scrolling credits
  3. Rotating flying logo

Usage:

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. Modify the variable declaration.

  5. Change this:
    CStatic m_AboutCtrl; 
    To this:
    CAboutCtrl m_AboutCtrl; 
  6. In your dialog's constructor set text for the credits:
  7. CString strCredits = "\tCAboutCtrl Example\n\n"
                         "\rProgrammed by:\n"
                         "Pablo van der Meer\n\n"
                         "\rSpecial thanks to:\nwww.codeproject.com\n\n"
                         "\rCopyright © 2002\n\rPablo Software Solutions\n"
                         "\rAll right reserved.\n\n"
                         "http:\\www.pablovandermeer.nl\n";
    m_AboutCtrl.SetCredits(strCredits);

Contacting the Author

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

License

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


Written By
Web Developer
Netherlands Netherlands
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionShow the text faster after flying out of the window Pin
dressman198121-Apr-07 4:56
dressman198121-Apr-07 4:56 
GeneralCan't make the link Pin
pblais19-Apr-07 8:49
pblais19-Apr-07 8:49 
Generalnice work but... Pin
TuPacMansur16-Jun-05 12:47
TuPacMansur16-Jun-05 12:47 
GeneralRe: nice work but... Pin
Pablo Software Solutions16-Jun-05 20:59
Pablo Software Solutions16-Jun-05 20:59 
QuestionRe: nice work but... Pin
yiruirui10-Apr-12 19:33
yiruirui10-Apr-12 19:33 
QuestionHow to move the credit dc Pin
kkez8-Jan-05 9:10
kkez8-Jan-05 9:10 
Generalits work on wince !! Pin
riki_risnandar30-Dec-04 7:55
riki_risnandar30-Dec-04 7:55 
GeneralNice Work Pin
Koundinya22-Apr-04 2:48
Koundinya22-Apr-04 2:48 
GeneralGreat Job Pin
Dimitris Vasiliadis1-Feb-03 9:18
Dimitris Vasiliadis1-Feb-03 9:18 
General5/5 Brill! Pin
NormDroid15-Nov-02 23:52
professionalNormDroid15-Nov-02 23:52 
GeneralNice! Pin
Shog921-Jul-02 9:21
sitebuilderShog921-Jul-02 9:21 
Generalkewl Pin
ColinDavies20-Jul-02 10:24
ColinDavies20-Jul-02 10:24 

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.