I am making a dialog based app. I am drawing a realtime graph which expands more than the width of a window. SO I was wondering what do I need to do to make it autoscroll and actually follow the graph.
Your question was a bit vague, so I will scetch the basic operations.
First you need to cache the data at least one display window wide to repaint the already drawn data in WM_PAINT.
Second you draw the new data as long as you don't reach the right side of the window. When you reach the end of the display area you scroll your window with ScrollWindow - func a bit to the left clear the free area and fill the free area again with your data. This scrolling occures as long as there is something to draw.
Bookmarks