YL3GDY
New member
Hi All,
currently I am doing my homework on programming: a programm on C++ which draws in the window an analog clock using LineTo(), Ellipse() and TextOut() functions. I had a problem: I can't force window to redraw it's client area(the clock simply looks stopped). I tried to use SetTimer, and in timer procedure call UpdateWindow, but I had no success.
Can anyone explain, how it can be solved?
P.S. I've written a class, which contains repaint routine. Object of this class is defined as global variable(I know that it's stupid, but I haven't thought of something more clever that works in callback and regular functions).
currently I am doing my homework on programming: a programm on C++ which draws in the window an analog clock using LineTo(), Ellipse() and TextOut() functions. I had a problem: I can't force window to redraw it's client area(the clock simply looks stopped). I tried to use SetTimer, and in timer procedure call UpdateWindow, but I had no success.
Can anyone explain, how it can be solved?
P.S. I've written a class, which contains repaint routine. Object of this class is defined as global variable(I know that it's stupid, but I haven't thought of something more clever that works in callback and regular functions).