CProgressCtrl中的PBS_SMOOTH样式不起作用 [英] PBS_SMOOTH style in CProgressCtrl doesn't work
本文介绍了CProgressCtrl中的PBS_SMOOTH样式不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,同事!
请告知如何解决以下问题:
在我的MFC应用程序中,我以PBS_SMOOTH样式创建了CProgressCtrl.但是控制仍然充满了障碍.它只是忽略了PBS_SMOOTH选项.
然后我创建了一个简单的项目,并以CProgressCtrl的形式输入.在属性"窗口中,将平滑"更改为TRUE.它也不起作用. CProgressCtrl忽略平滑选项.
对MSDN的理解:
Hello Colleagues!
Would you please advise how to resolve the following problem:
In my MFC application I created dinamycally CProgressCtrl with the style PBS_SMOOTH. But the conrtol still filled with blocks. It simply ignores PBS_SMOOTH option.
Then I created a simple project and put on the form CProgressCtrl. In the Properties window I changed Smooth to TRUE. It does not work too. CProgressCtrl ignores smooth option.
Acoodring to MSDN:
注意所有其他主题都将覆盖此样式.
Note This style is supported only in the Windows Classic theme. All other themes override this style.
推荐答案
如果您按以下建议调用 :: SetWindowTheme ,是否有帮助? ="http://www.themssforum.com/MFC/CProgressCtrl-PBSSMOOTH/" title =希望对您有所帮助."> http://www.themssforum.com/MFC/CProgressCtrl-PBSSMOOTH/吗?
Does it help if you call ::SetWindowTheme as suggested here: http://www.themssforum.com/MFC/CProgressCtrl-PBSSMOOTH/ ?
这篇关于CProgressCtrl中的PBS_SMOOTH样式不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文