如何在具有圆角的MFC中创建进度控制? [英] How do I create a progress control in MFC with rounded corners?
本文介绍了如何在具有圆角的MFC中创建进度控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在MFC应用程序中创建一个带圆角的进度条。我已经尝试使用CreateRoundRectRgn()和SetWindowRgn()的组合,这具有使控件完全消失的效果。我也尝试使用一个透明的GIF覆盖,它将绘制在进度条的顶部,但我只能得到覆盖被绘制进度条后面。任何建议?
I need to create a progress bar with rounded corners in a MFC application. I have tried using a combination of CreateRoundRectRgn() and SetWindowRgn(), which has the effect of making the control disappear completely. I also tried using a transparent GIF overlay that would be drawn on top of the progress bar, but I could only get the overlay to be drawn behind the progress bar. Any suggestions?
推荐答案
您可以查看本文 http://www.codeproject.com/KB/miscctrl/cskinprogress.aspx
这篇关于如何在具有圆角的MFC中创建进度控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文