使用CProgressCtrl仍然有效 [英] Using a CProgressCtrl as a Still Alive

查看:177
本文介绍了使用CProgressCtrl仍然有效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何设置"CProgressCtrl"的样式,使其显示从左到右的一些标记,从而向用户提供我们还活着的视觉反馈,而无需添加实际的"ProgressValue". Win XP在启动时会显示类似的内容.

我想知道"PBM_SETMARQUEE"和"PBS_MARQUEE"的值就可以管理它
问候,

臭丫头:)

Hi,

How do I style a ''CProgressCtrl'' so that it shows a few marks running left to right, to give the user visual feedback that we are still alive, without putting an actual ''ProgressValue'' to it. Win XP shows something like that when starting up.

I Think I can Manage it if I Know the values of ''PBM_SETMARQUEE'' and ''PBS_MARQUEE''
Regards,

Bram. :)

推荐答案

您可以使用 CProgressCtrl :: SetMarquee [ ^ ]功能可激活这种进度指示器.
但是,此功能仅在Visual Studio 2008及更高版本中可用.对于较旧的版本,您可能需要自己使用定时器来实现.
You can use the CProgressCtrl::SetMarquee[^] function to activate this style of progress indicator.
This function is only available in Visual Studio 2008 and higher though. For older version you will need to implement it yourself, perhaps by using a timer.


这篇关于使用CProgressCtrl仍然有效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆