Click here to Skip to main content
Licence 
First Posted 21 Jan 2004
Views 38,961
Downloads 129
Bookmarked 12 times

Yet another Conway's game of Life

By | 21 Jan 2004 | Article
Consider this program as a demo for GDI+

Introduction

Here is another Conway's game of life.

Points of Interest

Please, consider this project as a sample for GDI+. This project also provides the following techniques:

  • Shows a possible MFC way to use a thread to draw the content of the board. See DrawThread method in the CLifeWnd class.
  • A convenient random class. See CRandom class.
  • A convenient NONCLIENTMETRICS class wrapper. See CNonClientMetrics class.
  • A GDI+ version of Draw3dRect and some variants
  • Dialog box(es)' size is recalculated according to the font defined in the control panel (DoModal is overloaded in the base classes). See CBaseDialog and CResizableBaseDialog classes.
  • ResizableLib from Paolo Messina has been used to manage the resizing of dialogs on the fly. Thanks to him for his useful set of classes.

Conclusion

There are maybe bugs around. Just signal them to me. I'll try to handle them.

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

bouli

Web Developer

Belgium Belgium

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 1 Pinmemberkiswa0010:55 27 Aug '09  
Questionwhere is your article ?? Pinmembertoxcct2:46 1 Apr '05  
QuestionConway's game of life??? PinmemberJubjub12:05 22 Jan '04  
AnswerRe: Conway's game of life??? Pinmemberbouli20:15 22 Jan '04  

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.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 22 Jan 2004
Article Copyright 2004 by bouli
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid