UpdateWindow(hwnd); return 0 ; case IDM MAP3: sprintf(mapfile, "map3.txt"); sprintf(segmentfile, "segments3.txt"); Solution Found = 0 ; InvalidateRect(hwnd, NULL, TRUE); UpdateWindow(hwnd); return 0 ; case IDM MAP4: sprintf(mapfile, "map4.txt"); sprintf(segmentfile, "segments4.txt"); Solution Found = 0 ; InvalidateRect(hwnd, NULL, TRUE); UpdateWindow(hwnd); return 0 ; case IDM MAP5: sprintf(mapfile, "map5.txt"); sprintf(segmentfile, "segments5.txt"); Solution Found = 0 ; InvalidateRect(hwnd, NULL, TRUE); UpdateWindow(hwnd); return 0 ; case IDM MAP6: sprintf(mapfile, "map6.txt"); sprintf(segmentfile, "segments6.txt"); Solution Found = 0 ; InvalidateRect(hwnd, NULL, TRUE); UpdateWindow(hwnd); return 0 ; case IDM EXIT: EndDialog(hwnd, IDMEXIT); //Exits the program when Exit option is chosen break; //Menu stuff ENDS here case IDC EXIT: EndDialog(hwnd, IDCEXIT); //Exits the program when Exit button is pressed break; } break; case WM CLOSE: EndDialog(hwnd, 0);