如何使某个区域发光? [英] how to make some area shine?

查看:120
本文介绍了如何使某个区域发光?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们
如何使用vc6使某些区域发光?

我有一个如下所示的对话框吗?
------------------------------
| |
| |
| _________________ |
| | A | |
| | _________________ | |
| ______________________________ |

区域A在此对话框中,我想使区域A的边框变亮,该怎么做?非常感谢

guys
how to make some area shine using vc6?

I have a dialog shown below?
------------------------------
| |
| |
| _________________ |
| | A | |
| |_________________| |
|______________________________|

Area A is in this dialog, i want to make area A with its border shine, how to do this? thanks a lot

推荐答案

我不确定您是否正确地理解了您...您想在对话框的某个区域显示一个有光泽的边框或一个特定的颜色,以便强调/强调某些内容.

如果是这种情况,则存在不同的可能性.

-如果该区域始终位于相同的位置且具有相同的大小.您可以在对话框编辑器中包括一个具有所需长宽比的正方形以对该区域进行四舍五入,并根据您的条件使其可见或不可见.

-如果您希望它更加灵活,则可以使用CPen和MoveTo/LineTo,CRect或类似方法动态地使其变色,然后使用颜色,对比度,伽玛...


如果我对您的理解不正确,请更好地解释一下并提供更多信息.
I am not sure to understand you correctly... You want to make a certain area of your dialog to have a border that shines or have a particular color, in order to accentuate/emphasize something.

If this is the case there are different possibilities.

- If the area is always in the same place and with the same size. You can include a square with the desired aspect rounding the area in your dialog editor and make it visible or invisible according to your conditions.

- If you want it to be more flexible you can make it dynamically using CPen and MoveTo/LineTo, CRect or similars and then play with colors, contrasts, gamma...


If I didn''t understand you correctly, please explain it better and give more information.


yeath,这就是我的意思,

好的,谢谢大家
yeath,that''s what i mean,

ok,thank you guys


如果只是设置背景和字体颜色来突出显示(例如,使用浅黄色-深蓝色,黑色-白色和/或其他具有较大颜色的对对比)对您来说还不够...您想做什么?

要使其闪闪发光"将意味着具有纯色,实现在该区域周围移动的白色"火花,更改伽玛/亮度和/或其他多种可能性,具体取决于要获得的结果.但这(在我看来)会使它变得比所需的复杂得多.

即使是这样,您也想要做到这一点,您可能需要看看 MSDN GDI +信息 [^ ]

另一种可能是创建自己的闪亮* .gif并将其作为使用GDI +添加GIF动画 [ ^ ]解释
If just setting the background and font color to accentuate it (using, for instance, light yellow - dark blue, black - white and/or other pairs that have big contrast) is not enough for you... what do you want to do?

To make it "shining" would mean having solid colors, implementing a "white" spark that moves around the area, changing gamma/brightness and/or a lot of other possibilities, depending on the result you want to get. But this (in my opinion) would make it much more complicated than needed.

If even that, you want to make it you will probably need to have a look MSDN GDI+ info[^]

another possibility could be creating your own shining *.gif and add it to your dialog as Adding GIF-animation using GDI+[^] explain


这篇关于如何使某个区域发光?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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