-
2005年07月05日
MSchart控件不闪烁刷新
版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://lxdawn.blogbus.com/logs/1299078.html

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.
<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.
收藏到:Del.icio.us








评论
其中你给的那些code是不是有问题啊?