Flicker free MSChart

By ShabuKC | 5 Oct 2003 | Unedited contribution

A simple way to stop Flickering in MSChart.

图表控件--MSChart(3)不闪烁刷新

Introduction

This solves the problem of Flickering while the Chart values are updated rapidly.

Using the code

The trick is to set the mschart property DrawMode to 1 as shown in the picture. We need to do one more thing, set the Redraw to false just before updating the chat values and set ReDraw to true and also GetUpdated region and Invalidate the updated region.

Collapse

<CODE>
m_ChartControl.SetRedraw(false) ;
//.........code to update the Chart goes here
//.........................
CRgn rgn;
m_ChartControl.GetUpdateRgn(&rgn);
m_ChartControl.SetRedraw(true);
m_ChartControl.InvalidateRgn(&rgn,false) ;

Points of Interest

Hope this helps for all those you looking for non-flickering charts.

History

None as of now!!

Thanks!!

Happy codeing!!!

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

ShabuKC

Web Developer

India

Member

源文档 <http://www.codeproject.com/KB/miscctrl/NonFlickeringMSChart.aspx>

相关文章:

  • 2022-12-23
  • 2021-12-07
  • 2021-09-28
  • 2021-11-18
  • 2022-01-29
  • 2021-12-04
  • 2022-02-28
猜你喜欢
  • 2021-06-09
  • 2022-01-14
  • 2021-10-03
  • 2021-04-28
  • 2021-09-27
相关资源
相似解决方案