June 17th, 2004, 11:58 AM
application autoscroll ???
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.
Thanks in advance!!!
June 17th, 2004, 12:41 PM
June 17th, 2004, 12:45 PM
What do you mean by follow the graph ?
June 17th, 2004, 01:24 PM
well simply when it fills up the viewable screen to autoscroll and keep going to the right. Making space for itself.
June 17th, 2004, 03:09 PM
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.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.