Add the WM_CREATE Case

Set a timer by using the SetTimer function. You can do this in the
WM_CREATE
case. Add the following statements:

case WM_CREATE:

/* Set the timer for five-second intervals */

idTimer = SetTimer(hWnd, NULL, 5000, (FARPROC) NULL);

break;