[企业管理] 一个实时曲线类

[复制链接]
发表于 2022-9-22 15:16:24
介绍
最近在网络上面找一些实时曲线显示的控件,找了很多相似WINDOWS2000CPU利用率的功能控件,但是功能上面总部分局限性,于是在参考代码的基础上写了这个CMultiColorPlot实时曲线功能类,提供LINE和BAR两种曲线功能.给大家作一下参考,假如需求使用的可以直接使用,俺不收费的,^_^
正文
程序运行作用一:Line模式
55500
程序运行作用二:Bar模式
55501
接口说明:
//设置网格距离
voidSetGridResolutionX(intnGridReluX);
//设置网格距离
voidSetGridResolutionY(intnGridReluY);
//设置网格翻滚速度,正值为从左向右翻滚,0不动
voidSetGridScrollSpeedX(intnSpeedX);
//正值为从上到下翻滚,0不动
voidSetGridScrollSpeedY(intnSpeedY);
//网格线宽度
voidSetGridLineWidth(intnWidth);
//背景色
voidSetGridBackClr(COLORREFclr);
////确定数据显示范围
voidLockRang(boolbfLock=true);
//确定数据显示范围
voidLockRang(floatfMin,floatfMax);
//设置数据
voidSetData(floatfData);
//曲线色彩

(introduce
Recently, I found some real-time curve display controls on the Internet, and found a lot of functional controls similar to the WINDOWS2000 CPU utilization, but the functions are limited in general, so I wrote this CMultiColorPlot real-time curve function class on the basis of the reference code, providing LINE and BAR has two curve functions. For your reference, if you need to use it, you can use it directly, I don't charge, ^_^
text
Program operation function 1: Line mode
55500
Program operation function 2: Bar mode
55501
Interface Description:
//set grid distance
voidSetGridResolutionX(intnGridReluX);
//set grid distance
voidSetGridResolutionY(intnGridReluY);
//Set the grid scrolling speed, the positive value is scrolling from left to right, 0 does not move
voidSetGridScrollSpeedX(intnSpeedX);
//The positive value is to roll from top to bottom, 0 does not move
voidSetGridScrollSpeedY(intnSpeedY);
// grid line width
voidSetGridLineWidth(intnWidth);
//background color
voidSetGridBackClr(COLORREFclr);
//// Determine the data display range
voidLockRang(boolbfLock=true);
// Determine the data display range
voidLockRang(floatfMin,floatfMax);
//set data
voidSetData(floatfData);
//curve color)

[下载]15162443855.rar




上一篇:VC++中用通讯控件开发串行通信程序
下一篇:仿Scroll.ocx控件的VC类实现 

使用道具 举报

Archiver|手机版|小黑屋|吾爱开源 |网站地图

Copyright 2011 - 2012 Lnqq.NET.All Rights Reserved( ICP备案粤ICP备14042591号-1粤ICP14042591号 )

关于本站 - 版权申明 - 侵删联系 - Ln Studio! - 广告联系

本站资源来自互联网,仅供用户测试使用,相关版权归原作者所有

快速回复 返回顶部 返回列表