您好,欢迎来到中国测试科技资讯平台!

首页> 《中国测试》期刊 >本期导读>VC环境下多波形显示ActiveX控件开发

VC环境下多波形显示ActiveX控件开发

2335    2016-01-16

免费

全文售价

作者:张文, 秦开宇, 李志强

作者单位:电子科技大学自动化工程学院, 四川成都 610054


关键词:Visual C++语言; 多波形显示; ActiveX控件; 位图双缓冲; Marker操作


摘要:

为了对工业控制类软件中采集的大量数据进行图形化显示,采用Visual C++设计并实现了一个可用于多个波形显示的ActiveX控件。该控件采用位图双缓冲机制,避免了图像闪烁。显示图数量、前景色、背景色及线型均可设;显示图支持Marker操作;坐标轴可响应鼠标拖动。实验表明,该多波形显示控件跨语言性能好、可重用、易组合、使用方便,具有较高的工程应用价值。


Development of multi-wave display ActiveX control component based on Visual C++

ZHANG Wen, QIN Kai-yu, LI Zhi-qiang

College of Automation Engineering, University of Electronic Science and Technolgy of China, Chengdu 610054, China

Abstract: A multi-wave display ActiveX control component was designed and implemented to display the large amount of data collected in the industry software based on Visual C++. The double buffering display technology was used to avoid picture flicker. The amount of wave, foreground color, background color and line style could be set. The displayed wave supported marker operation and the position of axis could be moved through moving mouse. The experiment results indicate that the multi-wave display control component can be used in different language environments. It is reusable and convenient, and it has good compatibility, which promised its high project application value.

Keywords: Visual C++; Multi-wave display; ActiveX control; Double buffering bitmap; Marker

2009, 35(2): 33-36  收稿日期: 2008-5-5;收到修改稿日期: 2008-7-28

基金项目: 国家"863"计划资助项目(2007AA706128)

作者简介: 张文(1985-),女,湖北黄冈市人,硕士研究生,专业方向为自动测试系统。

参考文献

[1] Yuan Yi. Visual C++ practice and improve[M]. Beijing:China Railway Publishing House,2006:83-90.
[2] Anderson J. ActiveX programming with Visual C++ 5.0[M].US:Que Corporation,1997.
[3] David J,Kruglinski,Wingo S,et al. Visual C++6.0技术内幕[M].北京:希望电子出版社,2002.
[4] 郭永瑞,孙朋德.ActiveX控件的编写和使用[J].计算机与信息技术,2007(22):48-49.
[5] 高宏亮,王淑娟.采用Visual C++实现的函数波形显示控件[J].电测与仪表,2006(12):62-65.
[6] 叶克江,张亚东.基于ActiveX的多通道数据曲线编辑控件的实现[J].许昌学院学报,2003,9(5):62-65.
[7] 张力科.Visual C++6.0类库参考手册[M].北京:清华大学出版社,2003.
[8] 姚 勇,陈金勇.用MFC制作ActiveX控件[J].无线电通信技术,2002,28(2):25-28.
[9] 常 华,曹丽萍.ActiveX技术在VC中的应用[J].科技情报开发与经济,2005,15(6):256-257.
[10] 范艳军,孙 力. ActiveX控件的开发及其工控界面设计[J].软件技术,2005,24(3):105-106.
[11] Mark,Michaelis.COM+编程指南[M].北京:机械工业出版社,2002.