当前位置:网站首页>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 这里不再赘述
边栏推荐
- The latest progress of Intel Integrated Optoelectronics Research promotes the progress of CO packaging optics and optical interconnection technology
- Use canal and rocketmq to listen to MySQL binlog logs
- 添加命名空间声明
- 线上数据库迁移的几种方法
- SSRS筛选器的IN运算(即包含于)用法
- 2021 Hefei informatics competition primary school group
- Pytest 可视化测试报告之 Allure
- 2019年蜀山区第十五届青少年信息学竞赛
- LM10丨余弦波动顺势网格策略
- Educational codeforces round 22 E. Army Creation
猜你喜欢
redis分布式锁的8大坑总结梳理
Introduction to polyfit software
如何使用Async-Awati异步任务处理代替BackgroundWorker?
92.(cesium篇)cesium楼栋分层
One question per day (2022-07-02) - Minimum refueling times
PolyFit软件介绍
Mysql database basic operation -ddl | dark horse programmer
在线文本行固定长度填充工具
Pointnet/Pointnet++点云数据集处理并训练
The latest progress of Intel Integrated Optoelectronics Research promotes the progress of CO packaging optics and optical interconnection technology
随机推荐
Explore the contour drawing function drawcontours() of OpenCV in detail with practical examples
FPGA timing constraint sharing 01_ Brief description of the four steps
Shell 编程核心技术《二》
Educational Codeforces Round 22 E. Army Creation
【问题】druid报异常sql injection violation, part alway true condition not allow 解决方案
Leetcode ransom letter C # answer
BI技巧丨权限轴
用实际例子详细探究OpenCV的轮廓绘制函数drawContours()
Unity编辑器扩展C#遍历文件夹以及子目录下的所有图片
Upgrade the smart switch, how much is the difference between the "zero fire version" and "single fire" wiring methods?
LM10丨余弦波动顺势网格策略
1002. A+B for Polynomials (25)(PAT甲级)
Shell programming core technology "three"
Hough Transform 霍夫变换原理
自由小兵儿
SSL证书续费相关问题详解
The 300th weekly match of leetcode (20220703)
The CDC of sqlserver can read the data for the first time, but it can't read the data after adding, deleting and modifying. What's the reason
876. Intermediate node of linked list
. Net ORM framework hisql practice - Chapter 2 - using hisql to realize menu management (add, delete, modify and check)