application autoscroll ???
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: application autoscroll ???

  1. #1
    Join Date
    Jun 2004
    Posts
    11

    application autoscroll ???

    Hey guys,

    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!!!

  2. #2
    Join Date
    Jun 2004
    Posts
    11
    anybody

  3. #3
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354
    What do you mean by follow the graph ?

  4. #4
    Join Date
    Jun 2004
    Posts
    11
    well simply when it fills up the viewable screen to autoscroll and keep going to the right. Making space for itself.

  5. #5
    Join Date
    Jun 2004
    Posts
    7
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center