I got win32 application, that runs a infinite for loop, which increment a value inside the loop. the problem am having is that my application become unresponsive and uses alot of CPU when compiled.
case IDM_ROTATION:
for(int i = 0; i < 4; i++)
{
i = 0;
rotation += rotationIncrement;
InvalidateRect(hWnd, NULL, TRUE);
UpdateWindow(hWnd);
}
break;
How can i fix this?, I just want a loop or timer that increment my rotation variable every second.