65.9K
CodeProject is changing. Read more.
Home

Yet another Conway's game of Life

starIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIconemptyStarIcon

1.38/5 (10 votes)

Jan 22, 2004

viewsIcon

51982

downloadIcon

415

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.