当前位置:网站首页>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函数、方法汇总,便于对比和拿来使用
- 如何使用Async-Awati异步任務處理代替BackgroundWorker?
- 2021 Hefei informatics competition primary school group
- 《工作、消费主义和新穷人》的微信读书笔记
- Oracle with as ORA-00903: invalid table name 多表报错
- 2019年蜀山区第十五届青少年信息学竞赛
- Master the use of auto analyze in data warehouse
- FPGA timing constraint sharing 01_ Brief description of the four steps
- Several methods of online database migration
- Nebula importer data import practice
猜你喜欢
随机推荐
Several methods of online database migration
OpenCV的二值化处理函数threshold()详解
与二值化阈值处理相关的OpenCV函数、方法汇总,便于对比和拿来使用
ftp、sftp文件传输
Personal thoughts on Architecture Design (this article will be revised and updated continuously later)
1011 World Cup Betting (20 分)(PAT甲级)
Crawler (6) - Web page data parsing (2) | the use of beautifulsoup4 in Crawlers
明明的随机数
Educational Codeforces Round 22 E. Army Creation
Functional interface
mysql中explain语句查询sql是否走索引,extra中的几种类型整理汇总
FPGA时序约束分享01_四大步骤简述
Reflection (I)
There are multiple divs in the large div, which are displayed on the same line. After overflow, scroll bars are generated without line breaks
92.(cesium篇)cesium楼栋分层
Shell 编程核心技术《三》
Is it safe to open an account at Great Wall Securities? How to open an account when buying stocks
The difference and usage between substr (), slice (), and substring () in the string interception methods of "understand series after reading"
LeetCode第300场周赛(20220703)
node_exporter部署







