当前位置:网站首页>BCG 使用之CBCGPProgressDlgCtrl进度条使用
BCG 使用之CBCGPProgressDlgCtrl进度条使用
2022-07-04 18:32:00 【春蕾夏荷_728297725】
CBCGPProgressDlgCtrl进度条的使用跟MFC一样,拖入进度条控件,然后定义成员变量,CBCGPProgressDlgCtrl m_progressCtrl;
在使用的位置处:
m_progressCtrl.SetRange32(0, 1000);//设置进度条的最小值和最大值
int nFirstStep = m_progressCtrl.SetStep(10);//设置步长,返回原来步长,默认是最大值的1%
for (int x = 1; x <= 1000; x++)
{
m_progressCtrl.SetPos(x);
int a = m_progressCtrl.StepIt();//在原位置上增加一个步长距离,配合SetStep使用,先设置步长才能使用这个
}
类似于MFC 这里不再赘述
边栏推荐
- Reflection (I)
- Comment utiliser async awati asynchrone Task Handling au lieu de backgroundworker?
- 联想首次详解绿色智城数字孪生平台 破解城市双碳升级难点
- Explore the contour drawing function drawcontours() of OpenCV in detail with practical examples
- Introduction to polyfit software
- Oracle with as ORA-00903: invalid table name 多表报错
- prometheus安装
- 2022CoCa: Contrastive Captioners are Image-Text Fountion Models
- .NET ORM框架HiSql实战-第二章-使用Hisql实现菜单管理(增删改查)
- Unity adds a function case similar to editor extension to its script, the use of ContextMenu
猜你喜欢
随机推荐
《看完就懂系列》字符串截取方法substr() 、 slice() 和 substring()之间的区别和用法
To sort out messy header files, I use include what you use
自由小兵儿
2022CoCa: Contrastive Captioners are Image-Text Fountion Models
Online text line fixed length fill tool
Allure of pytest visual test report
FPGA时序约束分享01_四大步骤简述
请教一下 flinksql中 除了数据统计结果是状态被保存 数据本身也是状态吗
偏移量函数及开窗函数
Use canal and rocketmq to listen to MySQL binlog logs
Crawler (6) - Web page data parsing (2) | the use of beautifulsoup4 in Crawlers
Nebula importer data import practice
测试工程师如何“攻城”(下)
C# 使用StopWatch测量程序运行时间
Stream流
Jetpack Compose 教程
一文掌握数仓中auto analyze的使用
1007 Maximum Subsequence Sum(25 分)(PAT甲级)
牛客小白月赛7 谁是神箭手
Is Guoyuan futures a regular platform? Is it safe to open an account in Guoyuan futures?








