I want my program to draw a rectangle on the screen(HWND_DESKTOP), but when I make it redraw it in a while:
With this code the borders like flash a bit. But how I can make it redraw my rectangle on the screen only when it is necessary(if something overdraws it).Code:while(1==1){
Rectangle(hdc,48,48,102,77);
}