当前位置:网站首页>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 這裏不再贅述
边栏推荐
猜你喜欢

用实际例子详细探究OpenCV的轮廓绘制函数drawContours()

Bi skills - permission axis

Hough transform Hough transform principle

Detailed explanation of the binary processing function threshold() of opencv

92.(cesium篇)cesium楼栋分层

西门子HMI下载时提示缺少面板映像解决方案

HMM隐马尔可夫模型最详细讲解与代码实现

“只跑一趟”,小区装维任务主动推荐探索

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

Hough Transform 霍夫变换原理
随机推荐
测试工程师如何“攻城”(上)
An example of multi module collaboration based on NCF
The latest progress of Intel Integrated Optoelectronics Research promotes the progress of CO packaging optics and optical interconnection technology
【问题】druid报异常sql injection violation, part alway true condition not allow 解决方案
Explore the contour drawing function drawcontours() of OpenCV in detail with practical examples
“只跑一趟”,小区装维任务主动推荐探索
Is it safe to open an account at Great Wall Securities? How to open an account when buying stocks
English grammar_ Noun - use
How test engineers "attack the city" (Part I)
Shell programming core technology "I"
联想首次详解绿色智城数字孪生平台 破解城市双碳升级难点
求2的n次方
C# 使用StopWatch测量程序运行时间
1672. Total assets of the richest customers
26. Delete the duplicate item C solution in the ordered array
HMM隐马尔可夫模型最详细讲解与代码实现
项目中遇到的线上数据迁移方案1---总体思路整理和技术梳理
LeetCode 赎金信 C#解答
在线SQL转Excel(xls/xlsx)工具
HDU 1097 A hard puzzle