Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

CAboutCtrl - Aboutbox Credits Control

0.00/5 (No votes)
18 Jul 2002 1  
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