I have been working on this project for school for a little bit now and I have run into a problem. When I run my code and click the start button under file in the client window the timer should start counting and incrementing the x and y positions, but nothing happens and also I cant seem to figure out how to keep the ellipse from leaving the client area. Everything else in the program works. If anyone has any ideas or suggestions on how to fix this is would be much appreciated. Here is the code that im having trouble with, im not quite sure if im missing something in one of my functions to get the time to start and to make the ellipse stay in the client area.
case WM_SIZE:
nXSize= LOWORD(lParam);
nYSize= HIWORD(lParam);
InvalidateRect(hWnd, NULL, TRUE);
break;
case ID_FILE_KILL:
if(kill=true){
KillTimer(hWnd,1);
}
break;
case ID_FILE_START:
if(start=true){
SetTimer(hWnd,1,50,NULL);
}
break;
This is the part that im having problems with, so if anyone know what im missing or any clues on how to make this work it would be greatly appreciated.