65.9K
CodeProject is changing. Read more.
Home

CAboutCtrl - Aboutbox Credits Control

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.67/5 (14 votes)

Jul 19, 2002

viewsIcon

90171

downloadIcon

1870

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.