当前位置:网站首页>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 这里不再赘述
边栏推荐
- HDU 1372 & POJ 2243 Knight Moves(广度优先搜索)
- Oracle with as ora-00903: invalid table name multi report error
- 使用canal配合rocketmq监听mysql的binlog日志
- Pytorch学习(四)
- 测试工程师如何“攻城”(上)
- 92.(cesium篇)cesium楼栋分层
- 1006 Sign In and Sign Out(25 分)(PAT甲级)
- C # implementation defines a set of SQL statements that can be executed across databases in the middle of SQL (detailed explanation of the case)
- @transactional滥用导致数据源连接池耗尽问题
- Detailed explanation of issues related to SSL certificate renewal
猜你喜欢
Hough transform Hough transform principle
联想首次详解绿色智城数字孪生平台 破解城市双碳升级难点
node_ Exporter deployment
Wireshark网络抓包
大div中有多个div,这些div在同一行显示,溢出后产生滚动条而不换行
2022CoCa: Contrastive Captioners are Image-Text Fountion Models
更安全、更智能、更精致,长安Lumin完虐宏光MINI EV?
92.(cesium篇)cesium楼栋分层
OpenCV的二值化处理函数threshold()详解
升级智能开关,“零火版”、“单火”接线方式差异有多大?
随机推荐
SSRS筛选器的IN运算(即包含于)用法
To sort out messy header files, I use include what you use
One question per day (2022-07-02) - Minimum refueling times
Specify the character set to output
Educational Codeforces Round 22 E. Army Creation
Some thoughts on whether the judgment point is located in the contour
Mysql database basic operation -ddl | dark horse programmer
牛客小白月赛7 F题
socket编程demo二
添加命名空间声明
Functional interface
prometheus安装
Generate XML elements
明明的随机数
Hough Transform 霍夫变换原理
Introduction to polyfit software
Don't just learn Oracle and MySQL!
安徽 中安在线文旅频道推出“跟着小编游安徽”系列融媒体产品
Crawler (6) - Web page data parsing (2) | the use of beautifulsoup4 in Crawlers
Upgrade the smart switch, how much is the difference between the "zero fire version" and "single fire" wiring methods?