当前位置:网站首页>BCG 使用之CBCGPProgressDlgCtrl進度條使用
BCG 使用之CBCGPProgressDlgCtrl進度條使用
2022-07-04 19:37: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 這裏不再贅述
边栏推荐
- FPGA时序约束分享01_四大步骤简述
- 项目中遇到的线上数据迁移方案1---总体思路整理和技术梳理
- 92.(cesium篇)cesium楼栋分层
- 876. Intermediate node of linked list
- Shell programming core technology "three"
- 函数式接口
- 在线SQL转Excel(xls/xlsx)工具
- node_ Exporter deployment
- 矩阵翻转(数组模拟)
- Explore the contour drawing function drawcontours() of OpenCV in detail with practical examples
猜你喜欢
随机推荐
Explore the contour drawing function drawcontours() of OpenCV in detail with practical examples
Niuke Xiaobai monthly race 7 I new Microsoft Office Word document
FPGA timing constraint sharing 01_ Brief description of the four steps
长城证券开户安全吗 买股票怎么开户
ftp、sftp文件传输
TCP两次挥手,你见过吗?那四次握手呢?
Comment utiliser async awati asynchrone Task Handling au lieu de backgroundworker?
添加命名空间声明
2019年蜀山区第十五届青少年信息学竞赛
.NET ORM框架HiSql实战-第二章-使用Hisql实现菜单管理(增删改查)
联想首次详解绿色智城数字孪生平台 破解城市双碳升级难点
牛客小白月赛7 I 新建 Microsoft Office Word 文档
Technologie de base de la programmation Shell IV
1672. Total assets of the richest customers
876. Intermediate node of linked list
92.(cesium篇)cesium楼栋分层
Generate XML elements
Pytest 可视化测试报告之 Allure
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
An example of multi module collaboration based on NCF