Click here to Skip to main content
15,899,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,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
Posted

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.
 
Share this answer
 
yeath,that's what i mean,

ok,thank you guys
 
Share this answer
 
v2
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
 
Share this answer
 
You'll need to use GDI+ as mentioned by someone else. Teaching that to you is not within the scope of this thread. There are plenty of articles on GDI and GDI+ here which you can search for.

Here's a WTL application[^], and some portions of that application's window "shines".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900