找回密码
 立即注册
网格曲线voidSetGridResolvoidSetGridScrol | 企业管理 2022-09-22 82 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
介绍
最近在网络上面找一些实时曲线显示的控件,找了很多相似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类实现