Hello. I am just learning the basics of the win32 API at the moment and I realise that I need to actually create a functioning app before I can get the real gist of it. I have written a simple Tic Tac Toe game in C++ (Console) and I was wondering if anyone has some tips on which cases handle things the best.
My plan is to have 9 child windows populating the top level window and they respond to the user clicking on them. I am just concerned with what to do with all these clicks!
I have a vague idea that the parent will get sent a message from the kids and I need to tell the 'engine' (LOL) everytime parent gets one of these.
I am thinking that the 'engine' will live in the WM_COMMAND case and may send messages to a sub switch of WM_CREATE, for displaying wins and so fourth, but I would like some expert advice on whether I am heading down the right path or not. Any pointers would be much appreciated.
PS I think win32 programming will be great fun!



LinkBack URL
About LinkBacks


