How do you go about creating games using the Windows API? I have been wanting to create a Space Invader clone, but I can't figure out how to have multiple options. See I have a Game menu that contain the options New Game, View Credits, View High Scores, Exit. I can get View High Score to show, but none of the other. For each option do I create a function that handles a WM_PAINT msg?
Code:
new_game(int msg)
{
switch(msg)
case WM_PAINT:
BeingPaint
EndPaint
}
view_scores(int msg)
{
switch(msg)
case WM_PAINT:
BeingPaint
EndPaint
}
view_credits(int msg)
{
switch(msg)
case WM_PAINT:
BeingPaint
EndPaint
}