当前位置:网站首页>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 这里不再赘述
边栏推荐
- Educational codeforces round 22 E. Army Creation
- Online text line fixed length fill tool
- 性能优化之关键渲染路径
- Summary and sorting of 8 pits of redis distributed lock
- Leetcode fizzbuzz C # answer
- . Net ORM framework hisql practice - Chapter 2 - using hisql to realize menu management (add, delete, modify and check)
- 2019年蜀山区第十五届青少年信息学竞赛
- 一文掌握数仓中auto analyze的使用
- Opencv functions and methods related to binary threshold processing are summarized for comparison and use
- 数组中的第K个最大元素
猜你喜欢

与二值化阈值处理相关的OpenCV函数、方法汇总,便于对比和拿来使用

node_ Exporter deployment

Opencv functions and methods related to binary threshold processing are summarized for comparison and use

Stream流

在线SQL转Excel(xls/xlsx)工具

Stream stream

Oracle with as ORA-00903: invalid table name 多表报错

如何使用Async-Awati异步任务处理代替BackgroundWorker?

MySQL数据库基本操作-DDL | 黑马程序员

欧拉函数
随机推荐
Detailed explanation of issues related to SSL certificate renewal
用实际例子详细探究OpenCV的轮廓绘制函数drawContours()
Summary and sorting of 8 pits of redis distributed lock
《工作、消费主义和新穷人》的微信读书笔记
YOLOv5s-ShuffleNetV2
FPGA时序约束分享01_四大步骤简述
Shell programming core technology "three"
Specify the character set to output
测试工程师如何“攻城”(下)
C#实现定义一套中间SQL可以跨库执行的SQL语句(案例详解)
Some thoughts on whether the judgment point is located in the contour
牛客小白月赛7 I 新建 Microsoft Office Word 文档
C # implementation defines a set of SQL statements that can be executed across databases in the middle of SQL (detailed explanation of the case)
使用canal配合rocketmq监听mysql的binlog日志
node_exporter部署
Online text line fixed length fill tool
26. 删除有序数组中的重复项 C#解答
2014 Hefei 31st youth informatics Olympic Games (primary school group) test questions
Allure of pytest visual test report
Nebula importer data import practice