5,691,626 members and growing! (11,466 online)
Email Password   helpLost your password?
Platforms, Frameworks & Libraries » WTL » General     Intermediate

Pablo van der Meer's CAboutCtrl class ported to WTL

By Ma Weida

This control can be used as an about box for your WTL applications
VC6, VC7, C++Windows, Win2K, WinXP, WTL, VS6, Visual Studio, Dev

Posted: 7 Sep 2002
Updated: 7 Sep 2002
Views: 29,721
Bookmarked: 11 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
6 votes for this Article.
Popularity: 2.90 Rating: 3.73 out of 5
0 votes, 0.0%
1
0 votes, 0.0%
2
0 votes, 0.0%
3
2 votes, 50.0%
4
2 votes, 50.0%
5

Sample Image

Description

The original CAboutCtrl class, which is written in MFC, is made up out of three parts:

  1. A background image
  2. Scrolling credits
  3. Rotating flying logo
I have ported it to WTL for my shareware. All functionality has been kept.

Usage

To use the class in your application do the following:

  1. Insert AboutCtrl.h into your project.
  2. Place a picture control on your dialog.
  3. Add a member variable for that picture control:
  4. CAboutCtrl m_AboutCtrl; 
  5. In your dialog's constructor set text for the credits:
  6. CString strCredits = "\tCAboutCtrl Example\n\n"
                         "\rProgrammed by:\n"
                         "Pablo van der Meer\n\n"
                         "\rPorted to WTL by Ma Weida\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);
    
  7. Subclass the picture control in the message handler corresponding to WM_INITDIALOG:
  8. m_AboutCtrl.SubclassWindow(GetDlgItem(IDC_ABOUT_CTRL));

Original Article

Pablo van der Meer's original article can be found 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

About the Author

Ma Weida


C++ Coder
Occupation: Web Developer
Location: United States United States

Other popular WTL articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 1 of 1 (Total in Forum: 1) (Refresh)FirstPrevNext
Generalvery nicesussI1ya4:30 5 Nov '02  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 7 Sep 2002
Editor: Chris Maunder
Copyright 2002 by Ma Weida
Everything else Copyright © CodeProject, 1999-2008
Web15 | Advertise on the Code Project