Click here to Skip to main content
15,881,204 members
Articles / Desktop Programming / MFC
Article

CMatrixCtrl - Matrix Credits Control

Rate me:
Please Sign up or sign in to vote.
4.63/5 (7 votes)
24 Jul 2002 117.3K   2.8K   38   16
This is an attempt to create a control which looks a little bit like the credits of the Matrix movie.

Sample Image

Description:

This is an attempt to create a control which looks a little bit like the credits of the Matrix movie. While it isn’t the greatest clone of the Matrix credits, it turned out really well. I decided that I wanted the text on the background to be readable as well, so I didn't use the Matrix font (although it might have looked more realistic that way). The control is derived from CWnd.

Usage:

Here is how you use this class:

  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_MatrixCtrl; 
    To this:
    CMatrixCtrl m_MatrixCtrl; 
  6. And finally in your InitDialog message handler set some text for the credits:
  7. m_MatrixCtrl.SetCredits("What is The Matrix?, This is The Matrix!, "
    		"Programmed by, Pablo van der Meer, Pablo Software Solutions, "
    		"http://www.pablovandermeer.nl");

Contacting the Author

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

Revision history

  • 18th July 2002 - Initial revision.
  • 22th May 2002 - Control is now a little bit easier to use. Fixed initialization problem.

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

 
AnswerUnicode problems Pin
User 269425-Nov-13 1:20
professionalUser 269425-Nov-13 1:20 
GeneralVisual Studio 2005 issues Pin
User 2694223-Mar-07 1:38
professionalUser 2694223-Mar-07 1:38 
Hello,

I compiled your code with Visual Studio 2005 with the C++ Code Analyzer enabled an get the following warnings:

WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)
d:\devtemp\matrixctrl\matrix.cpp(50) : warning C4996: 'CWinApp::Enable3dControls': CWinApp::Enable3dControls is no longer needed. You should remove this call.
d:\devtemp\matrixctrl\matrixctrl.cpp(315) : warning C6246: Local declaration of 'strTemp' hides declaration of the same name in outer scope. For additional information, see previous declaration at line '248' of 'd:\devtemp\matrixctrl\matrixctrl.cpp': Lines: 248


Andreas.

GeneralVisual Studio 2005 Problems Pin
User 2694219-Mar-07 0:28
professionalUser 2694219-Mar-07 0:28 
QuestionVB Code? Pin
jmerencilla19-May-03 14:02
jmerencilla19-May-03 14:02 
GeneralSome more corrections for compiling in VC7 Pin
User 2694223-Jan-03 1:41
professionalUser 2694223-Jan-03 1:41 
Generalsome corrections for compiling in VC7 Pin
Tom Gee10-Aug-02 22:12
Tom Gee10-Aug-02 22:12 
Generalsome corrections for compiling in VC7 Pin
Anonymous10-Aug-02 22:10
Anonymous10-Aug-02 22:10 
GeneralThis is soooo cooool !! Pin
WREY6-Aug-02 10:55
WREY6-Aug-02 10:55 
GeneralSpiderman control as a next project idea Pin
Nish Nishant19-Jul-02 3:53
sitebuilderNish Nishant19-Jul-02 3:53 
GeneralRe: Spiderman control as a next project idea Pin
ColinDavies19-Jul-02 20:58
ColinDavies19-Jul-02 20:58 
GeneralVery fine, but ASSERT in Debug Pin
Thomas Haase18-Jul-02 23:03
Thomas Haase18-Jul-02 23:03 
GeneralRe: Very fine, but ASSERT in Debug Pin
Leaves19-Jul-02 4:07
Leaves19-Jul-02 4:07 
GeneralSuggestion Pin
PJ Arends18-Jul-02 18:44
professionalPJ Arends18-Jul-02 18:44 
GeneralWhat' next Pin
Rama Krishna Vavilala18-Jul-02 18:27
Rama Krishna Vavilala18-Jul-02 18:27 
GeneralA Real Beauty Pin
Santosh Rao18-Jul-02 18:25
Santosh Rao18-Jul-02 18:25 
GeneralNice! Pin
Ravi Bhavnani18-Jul-02 17:56
professionalRavi Bhavnani18-Jul-02 17:56 

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.