Click here to Skip to main content
Click here to Skip to main content

CMatrixCtrl - Matrix Credits Control

, 24 Jul 2002
Rate this:
Please Sign up or sign in to vote.
This is an attempt to create a control which looks a little bit like the credits of the Matrix movie.

Sample Image


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.


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, "

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.


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

Pablo van der Meer
Web Developer
Netherlands Netherlands
No Biography provided

Comments and Discussions

AnswerUnicode problems PinmemberC++ Hacker5-Nov-13 2:20 
GeneralVisual Studio 2005 issues PinmemberC++ Hacker23-Mar-07 2:38 
GeneralVisual Studio 2005 Problems PinmemberC++ Hacker19-Mar-07 1:28 
QuestionVB Code? Pinmemberjmerencilla19-May-03 15:02 
GeneralSome more corrections for compiling in VC7 PinmemberC++ Hacker23-Jan-03 2:41 
Generalsome corrections for compiling in VC7 Pinsusstom gee10-Aug-02 23:12 
Generalsome corrections for compiling in VC7 PinsussAnonymous10-Aug-02 23:10 
Great job you have done.
But in more than one case you directly assign an int value to CString
as following:
CString strTextOut = m_MatrixColumns[i].pItem[m_MatrixColumns[i].nCounter].character;
This will fail to compile in VC7. So I make some corrections as folling:
CString strTextOut;

there is another runtime check error .
int nStartColumn;
nStartColumn is used before assign any value.
I correct like this:
int nStartColumn =rand() % m_nCols;;

GeneralThis is soooo cooool !! PinmemberWREY6-Aug-02 11:55 
GeneralSpiderman control as a next project idea PinsubeditorNishant S19-Jul-02 4:53 
GeneralRe: Spiderman control as a next project idea PinmemberColin Davies19-Jul-02 21:58 
GeneralVery fine, but ASSERT in Debug PinmemberThomas Haase19-Jul-02 0:03 
GeneralRe: Very fine, but ASSERT in Debug PinmemberLeaves19-Jul-02 5:07 
GeneralSuggestion PinmemberPJ Arends18-Jul-02 19:44 
GeneralWhat' next PinmemberRama Krishna18-Jul-02 19:27 
GeneralA Real Beauty PinmemberSantosh Rao18-Jul-02 19:25 
GeneralNice! PinmemberRavi Bhavnani18-Jul-02 18:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150302.1 | Last Updated 25 Jul 2002
Article Copyright 2002 by Pablo van der Meer
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid