CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    6

    want no flikker while refreshing @100 ms

    Dear developers,
    i am writing code for real time trend. I have to show data of previous 100 samples as a graph in child window. After every 100ms , i have to redraw the graph with new sample.
    My prblem is, as i am redrawing complete graph after every 100 ms, it is showing flickker.
    Which i don't want. Please inform me , how to go for it.

    Deepak Patil

  2. #2
    Join Date
    May 1999
    Posts
    67

    Draw to Memory Device Context

    You can draw in background using a memory device context (CreateCompatibleDC() ). After updating your graph copy it to screen using pDC->BitBlt()

    Hope this helps


  3. #3
    Join Date
    May 1999
    Posts
    6

    Re: Draw to Memory Device Context

    Dear ronald,

    Thank you for the suggestion.

    regards,
    Deepak Patil

    Deepak Patil

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured