making a window scroll
I have a function that draws a sine wave.
I would like to make the window 'scroll' so the wave appears to be moving across the screen.
Can anyone give me some example for making a window scroll, or point me in the direction of a good tutorial.
1 2 3 4 5 6 7 8
|
void wavefunc(HDC hDC)
{
static int _x = 0;
int _y;
_y = sin(_x/50.0)*100 + 300;
SetPixel(hDC, _x, _y, blue);
_x += 1;
}
|
Thank you,
Mike
ScrollWindow()
Topic archived. No new replies allowed.