I'm working on a cellular automata program. (Conway's Game of Life) for example.

Heres a java example: http://hensel.lifepatterns.net/
click on "Enjoy Life" to launch applet.

You can see theres a grid which is clickable.

How would i go about making a grid in win32? Just draw lines and specify xy coordinates for the boxes?