I'm confused as on how to use functions in Windows other than the main wndproc. In the previous message I posted the code was to display a high score table. Now that I have added a menu to my window how do I add extra functions? e.x. new game, view scores, view credits, exit.
In the code below I want to move the *_highscore functions into the show_highscore function. This is where my confusion is.
Code:case WM_PAINT: { struct list high_score[MAX_SCORES] = {{{0}}}; RECT rcClient; PAINTSTRUCT ps; HDC hdc = BeginPaint(hwnd,&ps); GetClientRect(hwnd, &rcClient); /* load_highscore("hiscore.dat", high_score); display_highscore(hwnd,hdc, &rcClient, high_score); save_highscore("hiscore.dat", high_score);*/ EndPaint(hwnd, &ps); } break; void show_highscores(void) { }



LinkBack URL
About LinkBacks


