MFC C ++中的Button渐变 [英] Gradient to Button in mfc C++
本文介绍了MFC C ++中的Button渐变的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
如何在MFC C ++中为按钮填充渐变.
我的应用程序是VS 2003 .net中的MFC应用程序,我正在使用SDI应用程序,这意味着我在一个窗口中显示了太多的FormView.
有人可以给我建议创建渐变按钮吗?
Hello,
How can fill gradient to a button in MFC C++.
My application is MFC Application in VS 2003 .net and i am using SDI Application which means there are so many FormView which i am displaying in a single window.
Can anyone give me a suggestion in creating gradient button?
推荐答案
请看
Look at this. There are a lot of different buttons there.
您可以设置样式BS_OWNERDRAW
自己动手做......)
You could set the styleBS_OWNERDRAW
to constitute it by you own gusto... :)
欧根(Eugen),
我的主人抽奖是真实的.我已经尝试过,但无法创建渐变按钮.
实际上,我在我自己创建的对话框中使用了这些按钮,其背景为彩色.现在我的按钮是透明模式,所以对话框的背景就是按钮的背景.当我单击按钮时,按钮的背景更改为白色.
如何摆脱这种情况?
Hi Eugen,
My owner draw is true. i have tried but i am not able to create gradient button.
Actually i am using these button in my own created dialogbar whose background is colored. Now my buttons are transparent mode so background of dialogbar is background of button. when i am clicking on button, background of buttons changed to White.
How to get rid of this?
这篇关于MFC C ++中的Button渐变的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文