摘要
针对工控软件设计要求,提出一种采用Visual C++编程环境的自定义图表控件的设计方法。该方法基于MFC应用程序框架,通过继承CStatic类,并重写自绘函数,实现图表的图形界面设计。控件的设计采用内存绘制和复制技术以及子类化技术,能够避免控件自绘闪烁的问题和定位的问题。
Proposes a new custom chart control design method with Visual C++ for industrial control soft- ware. This method realizes the GUI design of the chart control through inheritance of CStatic class and override of paint function based on MFC application frame. The custom control with memory drawing and copying technology and subclass solution can prevent the twinkle and po- sitioning problem.
出处
《现代计算机》
2012年第13期75-77,共3页
Modern Computer
作者简介
汪莉(1978-),女,湖北赤壁人,工程师,本科,研究方向为电气自动化控制、水电设备等