Add the WM_TIMER Case

Add a WM_TIMER case to process timer messages. Add the following statements to the window function:

case WM_TIMER:

wsprintf(TimerText, “WM_TIMER: %d seconds”,

nTimerCount += 5);

InvalidateRect(hWnd, &rectTimer, TRUE);

break;